@Test
public void testCheckSettings() {

  final VulasConfiguration c1 = new VulasConfiguration();
  // Add a setting as mandatory
  c1.setProperty(VulasConfiguration.MAND_SETTINGS, "bar");
  // And check that an exception is thrown
  Exception ce = null;
  try {
    c1.checkSettings();
  } catch (ConfigurationException e) {
    ce = e;
  }
  assertFalse(ce == null);
  assertEquals(
      "The following mandatory settings are not specified: [bar], the following settings do not"
          + " comply with the required format: []",
      ce.getMessage());
}