@Test(expected = ClassCastException.class)
public void testConvertShouldThrowClassCastExceptionIfDataIsNotConvertable() {

    // Given:
    Object data = "not convertable";
    Class<?>[] parameterTypes = new Class<?>[] { Integer.class };
    // When:
    underTest.convert(data, false, parameterTypes, dataProvider);
    // Then: expect exception
}