### Question:
DynamicCypherResource extends ResourceConfig { public Resource.Builder getBuilder() { return resourceBuilder; } @Inject  DynamicCypherResource(CypherInflectorFactory factory, @Assisted String pathName, @Assisted Path path); Resource.Builder getBuilder();  }### Answer:
@Test public void pathIsCorrectlySet() { DynamicCypherResource resource = new DynamicCypherResource(factory, "foo", path); assertThat(resource.getBuilder().build().getPath(), is("foo")); }
@Test public void resourceMethodsAreAdded() { DynamicCypherResource resource = new DynamicCypherResource(factory, "foo", path); ResourceMethod method = getOnlyElement(resource.getBuilder().build().getResourceMethods()); assertThat(method.getHttpMethod(), is("GET")); }