  @Test
  public void digidocKeyUsageCheckIsNotABoolean() throws Exception {

    String fileName = "src/test/resources/testFiles/yaml-configurations/digidoc_test_conf_invalid_key_usage.yaml";
    this.expectedException.expect(ConfigurationException.class);
    this.expectedException.expectMessage("Configuration parameter KEY_USAGE_CHECK should be set to true or false" +
        " but the actual value is: NonBooleanValue.");
    this.configuration.loadConfiguration(fileName);
  }