Default { public List<String> getList() { return this.list; } Default(List<String> list); List<String> getList();  }
@Test public void shouldReturnNull() { Default item = new DefaultBuilder().build(); assertNull(item.getList()); }
@Test public void shouldRespectWithNull() { Default item = new DefaultBuilder().withList((List<String>)null).build(); assertNull(item.getList()); }
@Test public void shouldRespectWithList() { Default item = new DefaultBuilder().withList(new ArrayList<String>()).build(); assertNotNull(item.getList()); assertEquals(0, item.getList().size()); }
@Test public void shouldRespecAddToList() { Default item = new DefaultBuilder().addToList("foo").build(); assertNotNull(item.getList()); assertEquals(1, item.getList().size()); assertEquals("foo", item.getList().get(0)); }