public void testMatchWhenIdIsHref() {
Location location = new LocationBuilder().id("http://foo").description("description")
.scope(LocationScope.PROVIDER).build();
FindLocationForResource converter = new FindLocationForResource(
Suppliers.<Set<? extends Location>> ofInstance(ImmutableSet.<Location> of(location)));
assertEquals(converter.apply(new ReferenceTypeImpl("name", "type", URI.create("http://foo"))), location);
}