### Question:
DumpDeletedJudgmentsSuccessRepresentationBuilder { public DumpDeletedJudgmentsView build(List<Long> deletedJudgmentIds, UriComponentsBuilder uriComponentsBuilder){ Preconditions.checkNotNull(deletedJudgmentIds); Preconditions.checkNotNull(uriComponentsBuilder); DumpDeletedJudgmentsView dumpDeletedJudgmentsView = new DumpDeletedJudgmentsView(); dumpDeletedJudgmentsView.setLinks(toLinks(uriComponentsBuilder)); dumpDeletedJudgmentsView.setItems(deletedJudgmentIds); return dumpDeletedJudgmentsView; }  DumpDeletedJudgmentsView build(List<Long> deletedJudgmentIds, UriComponentsBuilder uriComponentsBuilder);  }### Answer:
@Test(expected = NullPointerException.class) public void build_deletedJudgmentIds_NULL() { representationBuilder.build(null, uriComponentsBuilder); }
@Test(expected = NullPointerException.class) public void build_uriComponentsBuilder_NULL() { representationBuilder.build(Lists.newArrayList(), null); }
@Test public void build() { List<Long> judgmentIds = Lists.newArrayList(123L, 334L, 3344L, 11111L); when(uriComponentsBuilder.build().encode().toString()).thenReturn("http: DumpDeletedJudgmentsView dumpDeletedJudgmentsView = representationBuilder.build(judgmentIds, uriComponentsBuilder); assertNotNull(dumpDeletedJudgmentsView.getLinks()); assertEquals(1, dumpDeletedJudgmentsView.getLinks().size()); assertEquals("http: assertEquals(ApiConstants.SELF, dumpDeletedJudgmentsView.getLinks().get(0).getRel()); assertNull(dumpDeletedJudgmentsView.getInfo()); assertNull(dumpDeletedJudgmentsView.getQueryTemplate()); assertEquals(judgmentIds, dumpDeletedJudgmentsView.getItems()); }