@Test
public void shouldCreateInstanceSupplier() {

    JavaCompilerInstanceSupplierFactory factory = new JavaCompilerInstanceSupplierFactory(compilerFacade, reflections, fallback);
    InstanceSupplier instanceSupplier = factory.apply(Foo.class.getConstructors()[0]);
    Assertions.assertNotNull(instanceSupplier);
    Object value = instanceSupplier.get();
    Assertions.assertTrue(value instanceof Foo);
}