@Test
void testGetRootDirectory() {

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