@Test
public void testConvertShouldCorrectlyParseClass() {

    // Given:
    String data = " java.lang.Thread, com.tngtech.junit.dataprovider.DataProviders ";
    Class<?>[] parameterTypes = new Class<?>[] { Class.class, Class.class };
    when(context.getSplitBy()).thenReturn(",");
    when(context.isTrimValues()).thenReturn(true);
    // When:
    Object[] result = underTest.convert(data, false, parameterTypes, context, 50);
    // Then:
    assertThat(result).containsExactly(Thread.class, DataProviders.class);
}