Item { public String getName() { return name; } Item(String name, Double size); String getName(); Double getSize(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void nameGetterReturnsName() { String expected = "a"; Item item = new Item(expected, (double) 1); String actual = item.getName(); assertThat(actual, equalTo(expected)); }