@Test
public void testValidFileSize() throws IOException {

  ClientContext clientContext = mock(ClientContext.class);

  RemoteDirectoryManager remoteDirectoryManager =
      mock(RemoteDirectoryManager.class);
  when(clientContext.getRemoteDirectoryManager())
      .thenReturn(remoteDirectoryManager);
  when(remoteDirectoryManager.isRemote(anyString())).thenReturn(true);
  when(remoteDirectoryManager.getRemoteFileSize(anyString()))
      .thenReturn(20000L);

  SubmarineConfiguration config =
      SubmarineConfiguration.newInstance();
  config.setLong(SubmarineConfVars
      .ConfVars.SUBMARINE_LOCALIZATION_MAX_ALLOWED_FILE_SIZE_MB, 21L);
  when(clientContext.getSubmarineConfig()).thenReturn(config);

  fileSystemOperations = new FileSystemOperations(clientContext);
}