@Test
public void shouldUseProvidedClassloader() {

    TestClassLoader cl = new TestClassLoader();
    ClassNameResolver.getDefault().isInClassLoader("some.non.existing.class", cl);
    assertThat(cl.getQueriedClass()).isEqualTo("some.non.existing.class");
}