@Test public void disableGeonamesImporter() { ImporterConfig importerConfig = new ImporterConfig(); Assert.assertTrue(importerConfig.isGeonamesImporterEnabled()); ImportConfirmAction action = new ImportConfirmAction(); action.setImporterConfig(importerConfig); Assert.assertTrue( "isGeonamesImporterEnabled should return the same value as the importerConfig One ", action.isGeonamesImporterEnabled()); Assert.assertEquals(Action.SUCCESS, action.disableGeonamesImporter()); Assert.assertFalse( "isGeonamesImporterEnabled should return the same value as the importerConfig One ", action.isGeonamesImporterEnabled()); }