CurveLookupMap { public static EcCurve getCurveByName(String name) { return NAME_TO_CURVE_MAP.get(name); }  static EcCurve getCurveByName(String name); static EcCurve getCurveByOid(String oid); static String getCurveName(EcCurve curve); static String getCurveOid(EcCurve curve);  }
@Test public void testGetSecp256r1ByName() { Assert.assertEquals(EcCurve.secp256r1, CurveLookupMap.getCurveByName("secp256r1")); }
@Test public void testGetSecp384r1ByName() { Assert.assertEquals(EcCurve.secp384r1, CurveLookupMap.getCurveByName("secp384r1")); }
@Test public void testGetSecp512r1ByName() { Assert.assertEquals(EcCurve.secp521r1, CurveLookupMap.getCurveByName("secp521r1")); }