@Test
void testGetRootDirectory() {

    DirectoryResource resource = new DirectoryResource();
    resource.setRootDirectory(new File("src/main/java"));
    assertNotNull(resource.getRootDirectory());
}