public String scope() {
    return scope;
  }
@Test
  public void testMethods() {
    BadConfigurationException ex = new BadConfigurationException("my-scope", "error");

    assertThat(ex.scope()).isEqualTo("my-scope");
    assertThat(ex).hasToString("BadConfigurationException{scope=my-scope, errors=[error]}");
  }