@Test
public void testConvertShouldThrowIllegalArgumentExceptionIfValueOfThrowsNumberFormatException() {

    // Given:
    String data = "noInt";
    Class<?>[] parameterTypes = new Class<?>[] { int.class };
    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage("Cannot convert 'noInt' to type 'int'");
    // When:
    underTest.convert(data, false, parameterTypes, context, 41);
    // Then: expect exception
}