@Test public void testList() throws Exception { // Saves the test URIAvailable URIRepository.save(test); // Gets all URIAvailable's in a list (one user) List<URIAvailable> aux = URIRepository.list(); // Verifies the size of the list assertEquals(aux.size(), 1); URIAvailable other = aux.get(0); // Verifies the content of the list is correct assertEquals(test, other); }