### Question:
PathParser { public static String getInlineTopicPath(PrestoContext context, PrestoField field) { if (context == null) { return "_"; } String topicId = context.getTopicId(); String viewId = context.getView().getId(); String fieldId = field.getId(); String localPath = PathParser.skull(topicId) + PathParser.FIELD_PATH_SEPARATOR + viewId + PathParser.FIELD_PATH_SEPARATOR + fieldId; PrestoContext parentContext = context.getParentContext(); if (parentContext != null) { PrestoField parentField = context.getParentField(); String parentPath = getInlineTopicPath(parentContext, parentField); return parentPath + PathParser.FIELD_PATH_SEPARATOR + localPath; } else { return localPath; } }  static PrestoContextField getContextField(Presto session, String path); static PrestoContext getTopicByPath(Presto session, String path, String topicId, String viewId); static String getInlineTopicPath(PrestoContext context, PrestoField field); static String skull(String u); static String deskull(String u); static String replaceUriPattern(String template, Map<String, String> values); static void main(String[] args);  }### Answer:
@Test public void testGetInlineTopicPath() { String inPath = "o:root$pinfo$children$o:child1$cinfo$grandchildren"; PrestoContextField contextField = PathParser.getContextField(session, inPath); PrestoContext context = contextField.getContext(); PrestoField field = contextField.getField(); String outPath = PathParser.getInlineTopicPath(context, field); Assert.assertEquals(outPath, inPath); }