@Test
public void shouldInstantiateNotAccessibleWithCRestConfig() throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {

    NotAccessiblePublicClassWithCRestConfig actual = ComponentFactory.instantiate(NotAccessiblePublicClassWithCRestConfig.class, mockCRestConfig);
    assertNotNull(actual);
    assertSame(mockCRestConfig, actual.crestConfig);
}