LineMapper { void appendCommon(int numLines) { lineA += numLines; lineB += numLines; } LineMapper();   }
@Test public void appendCommon() { LineMapper mapper = new LineMapper(); mapper.appendCommon(10); assertEquals(10, mapper.getLineA()); assertEquals(10, mapper.getLineB()); }