@Test
public void testPrefixedPathBadClassloaderConstructor() {

    ClassLoader badLoader = new ClassLoader() {
        @Override
        public URL getResource(String name){
            return null;
        }
    };
    PropertiesResourcePropertySource source = new PropertiesResourcePropertySource(testFileName, badLoader);
    assertThat(source).isNotNull();
    assertThat(source.getProperties()).isEmpty();
}