### Question:
DropBoxManager extends FileSender { @Override public boolean accept(File dir, String name) { return true; } DropBoxManager(PreferenceHelper preferenceHelper); boolean isLinked(); boolean finishAuthorization(); void startAuthentication(Context context); void unLink(); @Override void uploadFile(List<File> files); @Override boolean isAvailable(); @Override boolean hasUserAllowedAutoSending(); void uploadFile(final String fileName); @Override boolean accept(File dir, String name);  }### Answer:
@Test public void Accept_FileFilter_AcceptsAllFileTypes(){ PreferenceHelper pm = mock(PreferenceHelper.class); DropBoxManager dropBoxManager = new DropBoxManager(pm); assertThat("Any file type", dropBoxManager.accept(null,null), is(true)); assertThat("Any file type", dropBoxManager.accept(new File("/"),"abc.xyz"), is(true)); }