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