Add tests for java.net APIs

Bug: 119393918
Bug: 182166637
Test: atest CtsLibcoreTestCases:libcore.java.net
Change-Id: I81b9325c6c2a1fda6a2446dac5714fa744861a6a
(cherry picked from commit 9fe445af3f65a23f5ebdef53168e480dede07800)
Merged-In: I81b9325c6c2a1fda6a2446dac5714fa744861a6a
9 files changed