assertNotNull(result);
final int initialSize = result.size();
// alta de usuario
User user = new User();
user.setName("Maria");
user.setEmail("maria@fakemail.com");
user.setActive(true);
URI uri = restTemplate.postForLocation(usersURL, user);
user = restTemplate.getForObject(uri, User.class);
assertNotNull(user.getID());
result = restTemplate.getForObject(usersURL, List.class);
assertEquals(initialSize + 1, result.size());
// modificación de usuario
user.setName("Netolica");
restTemplate.put(usersURL + "/{id}", user, user.getID());
user = restTemplate.getForObject(usersURL + "/{id}", User.class, user.getID());
assertEquals("Netolica", user.getName());
// borrado de usuario
restTemplate.delete(usersURL + "/{id}", user.getID());
result = restTemplate.getForObject(usersURL, List.class);
assertEquals(initialSize, result.size());
}