@Test
public void testList() {

  final BuildDetails result1 = new BuildDetails();
  final BuildDetails result2 = new BuildDetails();
  final BuildDetails result3 = new BuildDetails();
  final BuildDetails result4 = new BuildDetails();
  final BuildDetails result5 = new BuildDetails();
  buildService.save(result1);
  buildService.save(result2);
  buildService.save(result3);
  buildService.save(result4);
  buildService.save(result5);
  assertEquals(2, buildService.list(result2.getUuid(), 3).size());
  assertEquals(3, buildService.list(null, 3).size());
  assertEquals(3, buildService.list(result5.getUuid(), 3).size());
  assertNull(buildService.list(randomUUID().toString(), 3));
}