### Question:
VirtualContainer implements Closeable { public VirtualContainer putFile(Path file) throws IOException { if (file == null || Files.notExists(file) || Files.isDirectory(file)) { return this; } String fileName = file.getFileName().toString(); Path target = Paths.get(fullPath, fileName); if (target.toAbsolutePath().toString() .equals(file.toAbsolutePath().toString())) { return this; } Files.copy(file, target); return this; } private  VirtualContainer();  VirtualContainer(Path fullDir);  VirtualContainer(Path parent, String dirName); String getContainerName(); String getSysAbsPath(); VirtualContainer putFile(Path file); VirtualContainer putObj(String fileName, Element element); Element getObj(String fileName); Path getFile(String fileName); R obtainContainer(String name, Function<Path, R> mapper); R getContainer(String name, Function<Path, R> mapper); VirtualContainer getParent(); Path getContainerPath(); boolean exit(String fileName); void clean(); void flush(); VirtualContainer flushContainerByName(String name); VirtualContainer flushFileByName(String name); ST_Loc getAbsLoc(); @Override void close();  }### Answer:
@Test void putFile() throws IOException { final String fileName = "testimg.png"; Path path = Paths.get("src/test/resources", fileName); vc.putFile(path); Assertions.assertTrue(Files.exists(Paths.get(target, fileName))); }