@Test
public void testValidations()
{

    assertValidates(new JaxrsConfig()
            .setHstsMaxAge(new Duration(1, TimeUnit.MINUTES)));
    assertValidates(new JaxrsConfig());
    assertFailsValidation(new JaxrsConfig().setHstsMaxAge(new Duration(1, TimeUnit.SECONDS)),
            "hstsMaxAge", "must be greater than or equal to 1m", MinDuration.class);
}