@Test public void testGetYearAsString_1999() throws ParseException { String result = service.getYearAsString(dateFormat.parse("03/01/1999")); assertThat(result, is("1999")); assertThat(result, is(equalTo("1999"))); }
@Test public void testGetYearAsString_2013() throws ParseException { String result = service.getYearAsString(dateFormat.parse("03/01/2013")); assertThat(result, is("2013")); }