### Question:
PathNode { public TypeInfo getTypeInfo() { return modelType; } PathNode(String elementName, TypeInfo elementTypeInfo, PathNode parent, GenericType elementGenericType);   PathNode(TypeInfo aTypeInfo); PathNode getParent(); TypeInfo getTypeInfo(); String getName(); boolean hasChildren(); Collection<PathNode> getChildren(); PathNode getChild(String name); PathNode asRoot(); PathNode getNode(Path pathToNode); Path getPath(); GenericType getGenericType(); PathNode getRoot(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void getTypeInfoReturnsTypeInfoOfCorrectJavaType() { MetadataRegistry reg = new MetadataRegistry(); PathNode info = reg.getPathNode(CompanyPM.class); assertEquals("info.getTypeInfo().getJavaType()", CompanyPM.class, info.getTypeInfo().getJavaType()); }