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