@Test
public void shouldReturnStringEncodedByTypeHandlerWhenTypeRegistered() throws ParseException {

    // given
    Date date = SimpleDateFormatPool.get("yyyy-MM-dd").parse("2013-12-04");
    Parameter metadata = new SimpleParameter().withLevel(new SimpleLevel().withName("date").withType("date"));
    MapEntry map = new MapEntry().put("date", date);
    // when
    ParameterEntry entry = converter.asEntry(metadata, map);
    // then
    assertThat(entry).hasLevels("2013-12-04");
}