@Test
public void testRfcEllipticCurveName() {

    ChangeLogStore clogStore = new MockZMSFileChangeLogStore("/tmp/zts_server_unit_tests/zts_root",
            pkey, "0");
    DataStore store = new DataStore(clogStore, null);
    assertNull(store.rfcEllipticCurveName(null));
    assertEquals(store.rfcEllipticCurveName("prime256v1"), "P-256");
    assertEquals(store.rfcEllipticCurveName("secp256r1"), "P-256");
    assertEquals(store.rfcEllipticCurveName("secp384r1"), "P-384");
    assertEquals(store.rfcEllipticCurveName("secp521r1"), "P-521");
    // not defined in the spec thus considered as unknown so
    // we keep the name as is
    assertEquals(store.rfcEllipticCurveName("prime192v1"), "prime192v1");
    assertEquals(store.rfcEllipticCurveName("newcurve"), "newcurve");
}