@Test
public void testFindFirstOfShouldWarnIfMoreClassesAreFound() throws ClassNotFoundException {

    //GIVEN
    Set<Class<? extends Object>> value = new HashSet<>();
    value.add(Object.class);
    value.add(String.class);
    given(packageBasedClassFinderCore.find(PACKAGE_NAME, INTERFACE_OR_CLASS)).willReturn(value);
    //WHEN
    underTest.findFirstOf(INTERFACE_OR_CLASS, PACKAGE_NAME);
    //THEN
    String expected = String.format(MULTIPLE_CLASSES_FOUND_TEMPLATE, value, PACKAGE_NAME, INTERFACE_OR_CLASS);
    verify(logger).info(expected);
}