@Test
public void throwsExceptionWhenPropertyAnnotationIsAppliedToParameterOtherThanString() throws Exception {

    when(parameter.getParameterClass()).thenReturn((Class)Object.class);
    thrown.expect(IllegalArgumentException.class);
    propertyResolver.resolve(parameter, applicationContext);
}