### Question:
ApplicationsImportService extends BonitaImportService { @Override protected String getAlreadyExistsExceptionMessage(final AlreadyExistsException e) { return _("Can't import applications. An application '%token%' already exists", getLocale(), new Arg("token", e.getName())); }  @Override String getToken(); @Override String getFileUploadParamName(); @Override ImportStatusMessages importFileContent(final byte[] fileContent, final String importPolicyAsString); final static String TOKEN; static final String FILE_UPLOAD; }### Answer:
@Test public void should_AlreadyExistsExceptionMessage_talk_about_application() throws Exception { final AlreadyExistsException alreadyExistsException = new AlreadyExistsException("name", "token"); assertEquals(spiedApplicationImportService.getAlreadyExistsExceptionMessage(alreadyExistsException), "Can't import applications. An application 'token' already exists"); }