@Test
public void testCapabilities() throws AccessControlException {

    Set<Capability> capabilities = this.viewer
        .getCapabilities(this.fs, getResourcePath(EMPTY_HTM));
    // READ should be the the one and only capability
    assertTrue(capabilities.contains(Capability.READ));
    assertEquals(capabilities.size(), 1);
    capabilities = this.viewer.getCapabilities(this.fs, getResourcePath(VALID_HTML));
    // READ should be the the one and only capability
    assertTrue(capabilities.contains(Capability.READ));
    assertEquals(capabilities.size(), 1);
}