### Question:
FileManager extends AbstractManager implements IFileManager { @Override public boolean isLargeFile(final Path path) { return !isSmallFile(path); } @Inject  FileManager(final INodeManager nodeManager, final UserConfig userConfig); @Override ProcessHandle<Void> add(final Path file); @Override ProcessHandle<Void> update(final Path file); @Override ProcessHandle<Void> delete(final Path file); @Override ProcessHandle<Void> move(final Path source, final Path destination); @Override ProcessHandle<Void> download(final Path file); @Override ProcessHandle<Void> recover(final Path file, final IVersionSelector versionSelector); @Override ProcessHandle<Void> share(final Path folder, final String userId, final PermissionType permission); @Override ProcessHandle<FileNode> listFiles(); @Override boolean existsRemote(final Path path); @Override boolean isSmallFile(final Path path); @Override boolean isLargeFile(final Path path);  }### Answer:
@Test public void testIsLargeFile() throws IOException { IFileConfiguration fileConf = FileConfiguration.createDefault(); Mockito.stub(nodeManager.getFileConfiguration()).toReturn(fileConf); int size = 1 + fileConf.getMaxFileSize().intValue(); String content = RandomStringUtils.randomAlphanumeric(size); Path largeFile = rootPath.resolve("smallFile.txt"); FileUtils.writeStringToFile(largeFile.toFile(), content); assertFalse(fileManager.isSmallFile(largeFile)); assertTrue(fileManager.isLargeFile(largeFile)); Files.deleteIfExists(largeFile); }