@Test
public void testMethodParser() {

  final JavaPackageId p = new JavaPackageId("com.sap.research");
  final JavaClassId c = new JavaClassId(p, "TestClass");
  final JavaClassId nc = new JavaClassId(c, "NestedClass");
  final JavaMethodId m1 = new JavaMethodId(nc, "foo", Arrays.asList("java.lang.String", "int"));
  final JavaMethodId m2 =
      JavaId.parseMethodQName("com.sap.research.TestClass$NestedClass.foo(String,int)");
  assertEquals(m1, m2);
}