@Test
public void testNonuniqueRestSignatures() throws Exception {

  // Set the failWrapped() method to have the same path and httpMethod as getResultNoParams().
  config.getApiClassConfig().getMethods().get(
      methodToEndpointMethod(TestEndpoint.class.getMethod("failWrapped"))).setPath("noresults");
  config.getApiClassConfig().getMethods().get(
      methodToEndpointMethod(TestEndpoint.class.getMethod("failWrapped"))).setHttpMethod("GET");
  try {
    validator.validate(config);
    fail("Expected DuplicateRestPathException.");
  } catch (DuplicateRestPathException expected) {
  }
}