SumYearMonth extends SumYear { public int getMonth() { return month; } SumYearMonth(double sum, int year, int month);  SumYearMonth(); int getMonth();  }
@Test public void test() { double sum = 250.0; int year = 2016; int month = 11; SumYearMonth bean = new SumYearMonth(sum, year, month); assertEquals(sum, bean.getSum(), 0.0); assertEquals(year, bean.getYear()); assertEquals(month, bean.getMonth()); }
@Test public void testNoArgsConstructor() { double sum = 0.0; int year = -1; int month = -1; SumYearMonth bean = new SumYearMonth(); assertEquals(sum, bean.getSum(), 0.0); assertEquals(year, bean.getYear()); assertEquals(month, bean.getMonth()); }