### Question:
Paths { public final static String getNodeDir(final Node node) { return getNodesDir(node) + "/" + node.getName(); } private  Paths(); final static String getNodesDir(final Node node); final static String getNodeDir(final Node node); final static String getDasPropsPath(final Node node); static String getInstanceDirPath(final Node node, final String instanceName); final static String DAS_PROPS_FILENAME; final static String DAS_PROPS_SUBPATH; }### Answer:
@Test public void testGetNodeDir() { String nodedir1 = Paths.getNodeDir(new NodeWithNodeDir()); String nodedir2 = Paths.getNodeDir(new NodeWithoutNodeDir()); System.out.println("User-specified Node Dir: " + nodedir1); System.out.println("Default Node Dir: " + nodedir2); assertEquals(nodedir2, SPECIFIED_INSTALL_DIR + "/glassfish/nodes/" + NODE_NAME); assertEquals(nodedir1, SPECIFIED_NODE_DIR); }