}
@Test
public void shouldConvertEnum() throws IntrospectionException {
ParameterConverter converter = new EnumConverter();
assertThat(converter.accept(SomeEnum.class), equalTo(true));
assertThat(converter.accept(WrongType.class), is(false));
assertThat(converter.accept(mock(Type.class)), is(false));
Type type = SomeSteps.methodFor("aMethodWithEnum").getGenericParameterTypes()[0];
assertThat((SomeEnum) converter.convertValue("ONE", type), equalTo(SomeEnum.ONE));
}