@Test
public void valid_strings_are_converted_to_matching_localdates() {

    Object localDate = new LocalDateConverter().getAsObject(mock(FacesContext.class), mock(UIComponent.class), "2012-04-05");
    assertThat(localDate).isEqualTo(LocalDate.of(2012, APRIL, 5));
}