@Test
public void testDefaultValuedPathParameterLong() throws Exception {

  final class Test extends DefaultValuedPathParameterEndpoint<Long> {}
  try {
    g.generateConfig(Test.class);
    fail("Config generation for endpoint with default-valued path parameter should have failed.");
  } catch (InvalidParameterAnnotationsException expected) {
    // expected
  }
}