@Test public void testDirectory() { Resource resource = Directory.create("org/foo"); assertThat(Scopes.isProject(resource), is(false)); assertThat(Scopes.isDirectory(resource), is(true)); assertThat(Scopes.isFile(resource), is(false)); assertThat(Scopes.isBlockUnit(resource), is(false)); assertThat(Scopes.isProgramUnit(resource), is(false)); }