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

    mockStatic(ComponentFactory.class);
    when(ComponentFactory.instantiate(String.class, mockCRestConfig)).thenReturn("a");
    String actual = toTest.instantiate(String.class);
    assertEquals("a", actual);
}