@Test
public void testConvertShouldThrowIllegalArgumentExceptionIfCharHasNotLengthOne() {

    // Given:
    String data = "noChar";
    Class<?>[] parameterTypes = new Class<?>[] { char.class };
    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage("'noChar' cannot be converted to type 'char'");
    // When:
    underTest.convert(data, false, parameterTypes, context, 40);
    // Then: expect exception
}