### Question:
FileObjectUtils { public static Properties readProperties(final FileObject fileObject) throws FileSystemException, IOException { return readProperties(fileObject, new Properties()); } private  FileObjectUtils(); static boolean exists(final FileObject fileObject); static AbstractFileObject getAbstractFileObject(final FileObject fileObject); static byte[] getContentAsByteArray(final FileObject file); static String getContentAsString(final FileObject file, final Charset charset); static String getContentAsString(final FileObject file, final String charset); static boolean isInstanceOf(final FileObject fileObject, final Class<?> wantedClass); static Properties readProperties(final FileObject fileObject); static Properties readProperties(final FileObject fileObject, final Properties properties); static void writeContent(final FileObject file, final OutputStream output); static void writeContent(final FileObject srcFile, final FileObject destFile);  }### Answer:
@Test public void testReadProperties() throws FileSystemException, IOException { assertProperties(FileObjectUtils .readProperties(VFS.getManager().toFileObject(new File("src/test/resources/test.properties")))); }
@Test public void testReadPropertiesInto() throws FileSystemException, IOException { final Properties p = new Properties(); p.setProperty("extraKey", "extraValue"); assertProperties(FileObjectUtils .readProperties(VFS.getManager().toFileObject(new File("src/test/resources/test.properties")), p)); Assert.assertEquals("extraValue", p.getProperty("extraKey")); }