CurveLookupMap { public static EcCurve getCurveByOid(String oid) { return OID_TO_CURVE_MAP.get(oid); }  static EcCurve getCurveByName(String name); static EcCurve getCurveByOid(String oid); static String getCurveName(EcCurve curve); static String getCurveOid(EcCurve curve);  }
@Test public void testGetSecp256r1ByOid() { Assert.assertEquals(EcCurve.secp256r1, CurveLookupMap.getCurveByOid("1.2.840.10045.3.1.7")); }
@Test public void testGetSecp384r1ByOid() { Assert.assertEquals(EcCurve.secp384r1, CurveLookupMap.getCurveByOid("1.3.132.0.34")); }
@Test public void testGetSecp512r1ByOid() { Assert.assertEquals(EcCurve.secp521r1, CurveLookupMap.getCurveByOid("1.3.132.0.35")); }
@Test public void testNotFoundByOid() { Assert.assertNull(CurveLookupMap.getCurveByOid("1.1.1")); }
@Test public void testNotFoundByName() { Assert.assertNull(CurveLookupMap.getCurveByOid("none")); }