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

    LOG.info("testAttemptAddWithEmptyKey");
    final UrlParameterBuilder builder = new UrlParameterBuilder();
    try {
        builder.addParameter("", "a value");
    } catch (final AssertionError ignored) {
        return;
    }
    Assert.fail("Wrong: empty key accepted!");
}