@Test
  public void testResolveSingle() throws ResolverException {
    config1.setX509TrustEngine(controlTrustEngine1);
    config1.setCertificateNameOptions(controlNameOpts1);

    ClientTLSValidationParameters params = resolver.resolveSingle(criteriaSet);

    Assert.assertNotNull(params);
    Assert.assertTrue(params.getX509TrustEngine() == controlTrustEngine1);
    Assert.assertTrue(params.getCertificateNameOptions() == controlNameOpts1);
  }
  @Test
  public void testResolve() throws ResolverException {
    config1.setX509TrustEngine(controlTrustEngine1);
    config1.setCertificateNameOptions(controlNameOpts1);

    Iterable<ClientTLSValidationParameters> paramsIter = resolver.resolve(criteriaSet);
    Assert.assertNotNull(paramsIter);

    Iterator<ClientTLSValidationParameters> iterator = paramsIter.iterator();
    Assert.assertNotNull(iterator);

    Assert.assertTrue(iterator.hasNext());

    ClientTLSValidationParameters params = iterator.next();

    Assert.assertNotNull(params);
    Assert.assertTrue(params.getX509TrustEngine() == controlTrustEngine1);
    Assert.assertTrue(params.getCertificateNameOptions() == controlNameOpts1);

    Assert.assertFalse(iterator.hasNext());
  }