### Question:
HippoNodeUtils { public static String resolvePath(String type) { if (type.contains(":")) { return "/hippo:namespaces/" + type.replace(':', '/'); } else { return "/hippo:namespaces/system/" + type; } } private  HippoNodeUtils(); static List<String> getProjectNamespaces(final Session session); static void setSupertype(final Node namespaceNode, final Collection<String> values); static void setSupertype(final Node namespaceNode, final String... values); static void setUri(final Node namespaceNode, final String uri); static void setNodeType(final Node namespaceNode, final String value); static String getStringProperty(final Node node, final String property); static String getStringProperty(final Node node, final String property, final String defaultValue); static boolean getBooleanProperty(final Node node, final String property); static Long getLongProperty(final Node node, final String property, final Long defaultValue); static double getDoubleProperty(final Node node, final String property, final double defaultValue); static Long getLongProperty(final Node node, final String property); static Double getDoubleProperty(final Node node, final String property); static Node getNode(final Session session, final String path); static Node retrieveExistingNodeOrCreateCopy(final Session session, final String path, final String pathToCopy); static Node retrieveExistingNodeOrCreateCopy(final Session session, final String path, final Node nodeToCopy); static Node copyNode(final Session session, final String source, final String destination); static Node copyNode(final Session session, final Node source, final String destination); static void removeChildNode(final Node node, final String child); static String getPrefixFromType(final String type); static String getNameFromType(final String type); static String getTypeFromPrefixAndName(final String prefix, final String name); static Set<String> getCompounds(final Session session); static Set<String> getCompounds(final Session session, final JcrMatcher matcher); static Set<String> getContentBlocksProviders(final Session session, final JcrMatcher matcher); static List<String> getPrimaryTypes(final Session session, final String... templates); static List<String> getPrimaryTypes(final Session session, final JcrMatcher matcher, final String... templates); static String getDisplayValue(final Session session, final String type); static String resolvePath(String type); static void checkName(String name); static void checkURI(String name); static void populateProperties(final Node node, final NodeRestful restful); static final Multimap<Integer, Class<?>> TYPE_MAPPINGS; static final String HIPPOSYSEDIT_PATH; static final String HIPPO_NAMESPACE_PREFIX; static final String HIPPOSYS_NAMESPACE_PREFIX; static final String HIPPOSYSEDIT_NAMESAPCE_PREFIX; static final String REPORTING_NAMESPACE_PREFIX; static final String HIPPO_TRANSLATION; static final String NT_UNSTRUCTURED; static final String HIPPOSYSEDIT_SUPERTYPE; }### Answer:
@Test public void testResolvePath() throws Exception { assertEquals("/hippo:namespaces/someprefix/document", HippoNodeUtils.resolvePath("someprefix:document")); assertEquals("/hippo:namespaces/system/String", HippoNodeUtils.resolvePath("String")); }