class SchemaResolver {

    public static String getSimpleHttpResourcePath(String location) {
        return getSimpleHttpResourcePath(location, false);
    }

}

class SchemaResolverTest {

    @Test
    public void queryIgnored() {

        String path = SchemaResolver
                .getSimpleHttpResourcePath("http://schemas.example.org/exampleml/exml.xsd?q=ignored");
        Assert.assertEquals("/org/example/schemas/exampleml/exml.xsd", path);
    }

}