Frame { public int countScore() { System.out.println(ownScore + getBonus()); return ownScore + getBonus(); } Frame(int firstRoll, int secondRoll); int countScore(); void setNextFrame(Frame nextFrame);  }
@Test public void shouldCountScoreOfRegularRolls() { Frame frame = new Frame(1, 2); int score = frame.countScore(); assertThat(score, is(3)); }