BuildService extends AbstractService { public Optional<BuildDetails> get(final String uuid) { return Optional.ofNullable(uuid2buildResult.get(uuid)); }  void addListener(final DangerousConsumer<BuildSummary> listener); void save(final BuildDetails buildDetails); Optional<BuildDetails> get(final String uuid); List<BuildSummary> list(final String from, final int requestSize);  }
@Test public void testGet() { final BuildDetails details = new BuildDetails(); buildService.save(details); assertNotNull(buildService.get(details.getUuid())); }