### Question:
Namespaces { private Namespaces() { if (ConfigUtils.getDefaultConfig().getBoolean("model.local")) { prefix = "file:"; } else { URI defaultURI = FileSystem.getDefaultUri(new OryxConfiguration()); String host = defaultURI.getHost(); int port = defaultURI.getPort(); if (port > 0) { prefix = "hdfs: } else { prefix = "hdfs: } } } private  Namespaces(); static Namespaces get(); String getPrefix(); static String getSysPrefix(String instanceDir); static String getKeystoreFilePrefix(String instanceDir); static Path toPath(String suffix); static String getInstancePrefix(String instanceDir); static String getInstanceGenerationPrefix(String instanceDir, long generationID); static String getTempPrefix(String instanceDir, long generationID); static String getIterationsPrefix(String instanceDir, long generationID); static String getGenerationDoneKey(String instanceDir, long generationID);  }### Answer:
@Test public void testNamespaces() throws Exception { Config config = ConfigUtils.getDefaultConfig(); assertEquals("/tmp/OryxTest/00001/", Namespaces.getInstanceGenerationPrefix(config.getString("model.instance-dir"), 1L)); assertEquals("/tmp/OryxTest/00001/tmp/iterations/", Namespaces.getIterationsPrefix(config.getString("model.instance-dir"), 1L)); assertEquals("/tmp/OryxTest/00001/_SUCCESS", Namespaces.getGenerationDoneKey(config.getString("model.instance-dir"), 1L)); assertEquals(new Path("file:/user/smurf"), Namespaces.toPath("/user/smurf")); }