@Test(expected = IllegalArgumentException.class)
public void testSetIllegalCast() {

    TypeReflector<TestClass> underTest = new TypeReflector<>(TestClass.class);
    TestClass instance = new TestClass();
    underTest.set(instance, "value", 1);
}