Bar { public String conditionedBarMethod(boolean condition) { if (!condition) { return s; } else { int j = i + 1; return String.valueOf(j) + s; } }  int barMethod(); String anotherBarMethod(); String conditionedBarMethod(boolean condition);  }
@Test void testConditionedBarMethod() { Bar testee = new Bar(); assertThat(testee.conditionedBarMethod(true), is("6jacoco")); }