@Test
public void testGetInvalidCurveName() {

    ChangeLogStore clogStore = new MockZMSFileChangeLogStore("/tmp/zts_server_unit_tests/zts_root",
            pkey, "0");
    DataStore store = new DataStore(clogStore, null);
    ECParameterSpec spec = Mockito.mock(ECParameterSpec.class);
    when(spec.getCurve()).thenReturn(null);
    when(spec.getG()).thenReturn(null);
    when(spec.getH()).thenReturn(new BigInteger("100"));
    when(spec.getN()).thenReturn(new BigInteger("100"));
    assertNull(store.getCurveName(spec, false));
}