@Test
public void shouldObtainPathMappingsForConnectorAndResolvePathsCorrectly() {
Connector conn = connectors.getConnectorForSourceName("targetDirectory");
assertThat(conn, is(instanceOf(FileSystemConnector.class)));
PathMappings mappings = connectors.getPathMappings(conn);
assertThat(mappings.getConnectorSourceName(), is("targetDirectory"));
assertThat(mappings.getPathFactory(), is(notNullValue()));
assertPathResolves(mappings, "/classes", "default", "/federation/classes");
assertPathResolves(mappings, "/classes/org", "default", "/federation/classes/org");
assertPathResolves(mappings, "/classes/org/modeshape", "default", "/federation/classes/org/modeshape");
assertPathResolves(mappings, "/generated-sources", "default", "/federation/generated-sources");
assertPathResolves(mappings, "/generated-surefire", "default", "/federation/surefire");