BoxDropImporter implements DropImporter { String getBcp47TagFromFileName(String fileName) { return fileName.substring(0, fileName.indexOf("_")); } BoxDropImporter(String localizedFolderId); String getLocalizedFolderId(); @Override void downloadFileContent(DropFile dropFile); @Override List<DropFile> getFiles();  }
@Test public void testGetLangFromFileName() { BoxDropImporter boxDropImporter = new BoxDropImporter(null); String langFromFileName = boxDropImporter.getBcp47TagFromFileName("fr-FR_08-26-14.csv"); assertEquals("fr-FR", langFromFileName); }