  @Test
  public void test() throws IOException, URISyntaxException {

    try (HttpStubAuthenticator auth = new MappingContext()
        .withParser(new SnakeyamlParser())
        .fromStream(HttpStubAuthenticatorConfigTest.class.getClassLoader().getResourceAsStream("http-stub-auth-config.yaml"))
        .map(HttpStubAuthenticator.class)) {
      assertEquals(new URI("http://localhost:8090/auth"), auth.getConfig().uri);
      assertEquals(4, auth.getConfig().poolSize);
      assertEquals(30000, auth.getConfig().timeoutMillis);
      assertNotNull(auth.toString());
      assertNotNull(auth.getConfig().toString());
    }
  }