@Test
public void delete() throws Exception {
Object instance = getPersistentInstance();
final EntityConfig entityConfig = config.getEntityConfig(clazz);
Service s = getClient();
final Serializable id = entityConfig.getId(instance);
validate(createServiceResponse(Arrays.asList(instance)), invoke(s, "get",id), Arrays.asList(new String[] {}));
Assert.assertEquals(id, invokeDelete(s, "delete", id));
Assert.assertFalse(invokeExists(s, "exists", id));
}