@Test
public void testMaintenanceMode(){

    final GrapesServerConfig config = new GrapesServerConfig();
    final MaintenanceModeTask task = new MaintenanceModeTask(config);
    assertFalse(config.isInMaintenance());
    task.execute(null,mock(PrintWriter.class));
    assertTrue(config.isInMaintenance());
    task.execute(null, mock(PrintWriter.class));
    assertFalse(config.isInMaintenance());
}