@Test
    public void setInstanceSupplier() {
        Function<Class<?>, Object> provider = t -> Mockito.mock(t);
        Injector.setInstanceSupplier(provider);
        Object mock = Injector.instantiateModelOrService(Model.class);
        assertTrue(mock.getClass().getName().contains("ByMockito"));
        Injector.resetInstanceSupplier();
    }