### Question:
Utilities { public static Path getSourceFileRelativePath(Type type) { Class declaringClass = Cast.toClass(type); Path packageRelativePath = transformIntoPath(declaringClass); String declaringFileName = getSourceFileName(declaringClass); return packageRelativePath.resolve(declaringFileName); }  static Path getSourceFileRelativePath(Type type);  }### Answer:
@Test public void testSimpleClass() { Path p = Utilities.getSourceFileRelativePath(LocalClass.class); assertEquals(p.toString(), perOS("org/raml/jaxrs/parser/source/LocalClass.java")); }
@Test public void testGenericType() throws NoSuchMethodException { Type type = LocalClass.class.getMethod("testType").getGenericReturnType(); Path p = Utilities.getSourceFileRelativePath(type); assertEquals(p.toString(), perOS("java/util/List.java")); }