Eager { public Map<String,String> getMap() { return this.map; } Eager(Map<String,String> map); Map<String,String> getMap();  }
@Test public void shouldReturnEmpty() { Eager item = new EagerBuilder().build(); assertNotNull(item.getMap()); assertEquals(0, item.getMap().size()); }
@Test public void shouldRespectWithNullMap() { Eager item = new EagerBuilder().withMap(null).build(); assertNull(item.getMap()); }
@Test public void shouldRespectWithMap() { Eager item = new EagerBuilder().withMap(new HashMap<String,String>()).build(); assertNotNull(item.getMap()); assertEquals(0, item.getMap().size()); }
@Test public void shouldRespecAddToMap() { Eager item = new EagerBuilder().addToMap("foo", "bar").build(); assertNotNull(item.getMap()); assertEquals(1, item.getMap().size()); assertEquals("bar", item.getMap().get("foo")); }