@Test
public void testUpdateTemplateServiceIdentity() {

    ServiceIdentity service = createServiceObject("_domain_",
            "_service___api_-backend", "http://localhost", "/usr/bin/java", "root",
            "users", "host1");
    List<TemplateParam> params = new ArrayList<>();
    params.add(new TemplateParam().setName("service").setValue("storage"));
    params.add(new TemplateParam().setName("api").setValue("java"));
    params.add(new TemplateParam().setName("name").setValue("notfound"));
    ServiceIdentity newService = zms.dbService.updateTemplateServiceIdentity(service,
            "athenz", params);
    assertEquals("athenz.storage_java-backend", newService.getName());
}