### Question:
WebServiceResourceInfo extends BaseResourceInfo { @JsonIgnore public void addParameter( String name, Object value ) { Object parameters = getAttributes().get( "parameters" ); if ( parameters == null ) { parameters = new HashMap<String, Object>(); getAttributes().put( "parameters", parameters ); } if ( parameters instanceof Map ) { Map paramMap = (Map) parameters; paramMap.put( name, value ); } } WebServiceResourceInfo(); @JsonIgnore void setMethod( String method ); @JsonIgnore void setBody( String body ); @JsonIgnore void setApplicationType( String applicationType ); @JsonIgnore void addParameter( String name, Object value ); @JsonIgnore void addHeader( String name, Object value );  }### Answer:
@Test public void testAddParameter() throws Exception { resourceInfo.addParameter( "param1", "value1" ); Map parameters = (Map) resourceInfo.getAttributes().get( "parameters" ); assertNotNull( parameters ); assertEquals( parameters.get( "param1" ), "value1" ); resourceInfo.addParameter( "param2", "value2" ); parameters = (Map) resourceInfo.getAttributes().get( "parameters" ); assertNotNull( parameters ); assertEquals( parameters.get( "param2" ), "value2" ); }