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