@Test public void isResponsibleForLocalTime() { Assert.assertThat(converter.getResponsibleFor(), Matchers.typeCompatibleWith(LocalTime.class)); }
@Test public void convertOfValidTime_should_returnString() { final LocalTime localTime = new LocalTime(1, 2, 3, 4); assertThat(converter.convert(localTime), is("01:02:03")); }
@Test(expected = IllegalArgumentException.class) public void convertAnotherClass_should_fail() { converter.convert(new Object()); }
@Test(expected = IllegalArgumentException.class) public void convertNull_should_fail() { converter.convert(null); }