@SuppressWarnings("ErrorNotRethrown")
@Test
public void testAttemptAddWithNullKey() {

    LOG.info("testAttemptAddWithNullKey");
    final UrlParameterBuilder builder = new UrlParameterBuilder();
    try {
        //noinspection ConstantConditions
        builder.addParameter(null, "a value");
    } catch (final AssertionError | IllegalArgumentException ignored) {
        return;
    }
    Assert.fail("Wrong: null accepted by @Nonnull parameters!");
}