@Test
public void shouldConvertDateWithCustomFormat() throws ParseException, IntrospectionException {
DateFormat customFormat = new SimpleDateFormat("yyyy-MM-dd");
ParameterConverter converter = new DateConverter(customFormat);
assertThat(converter.accept(Date.class), equalTo(true));
assertThat(converter.accept(WrongType.class), is(false));
assertThat(converter.accept(mock(Type.class)), is(false));
Type type = SomeSteps.methodFor("aMethodWithDate").getGenericParameterTypes()[0];
String date = "2010-01-01";
assertThat((Date) converter.convertValue(date, type), equalTo(customFormat.parse(date)));