ParametersSupport { public Buffer getParameter(final Buffer name) throws SipParseException { if (name == null) { throw new IllegalArgumentException("The name of the parameter cannot be null"); } if (this.paramMap != null && this.paramMap.containsKey(name)) { final Buffer value = this.paramMap.get(name); if (value == null) { return null; } return value.slice(); } return consumeUntil(name); } ParametersSupport();  ParametersSupport(final Buffer params); boolean hasParameters(); boolean hasParameter(final Buffer name); Buffer getParameter(final Buffer name); Set<Map.Entry<Buffer, Buffer>> getAllParameters(); void removeParameter(final Buffer name); Buffer getParameter(final String name); void setParameter(final String name, final String value); void setParameter(final Buffer name, final Buffer value); Buffer toBuffer(); void transferValue(final Buffer dst);  }
@Test public void testIssueNo106() { final Buffer params = Buffers.wrap("wrong>"); final ParametersSupport support = new ParametersSupport(params); support.getParameter("wrong"); try { support.getParameter("loop"); fail("Expected a SipParseException here"); } catch (final SipParseException e) { } }