@Test
@SuppressWarnings("unchecked")
public void shouldCreateBaseClassInstanceEvenWithSubclassNewInstance() throws NoSuchMethodException {

    final NonConstructableGenericBaseClass<Long> instance =
            NonConstructableGenericBaseClass.newInstance(NonConstructableGenericBaseClass.class, Long.class, 5);
    assertThat(valueOf(instance.getFieldA()), is(5));
    assertTrue(instance.getMemberClass() == Long.class);
}