@Test
public void testUpdateServiceIdentitySystemMetaFields() {

    ServiceIdentity service = new ServiceIdentity();
    ServiceIdentitySystemMeta meta = new ServiceIdentitySystemMeta()
            .setProviderEndpoint("https://localhost");
    zms.dbService.updateServiceIdentitySystemMetaFields(service, "providerendpoint", meta, "unit-test");
    assertEquals(service.getProviderEndpoint(), "https://localhost");
    try {
        zms.dbService.updateServiceIdentitySystemMetaFields(service, "unknown", meta, "unit-test");
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), 400);
    }
}