Foo { int twice(int x) { return bar.add(x, x); } Foo(Bar bar);   }
@Test public void twiceWillReturnDoubleTheInput() { int actual = foo.twice(HALF); int expected = WHOLE; assertThat(actual).isEqualTo(expected); }