@Test
public void testAsStringWithBindings() {

    PortableBooleanParameterDefinition p1 = new PortableBooleanParameterDefinition();
    p1.setValue( Boolean.TRUE );
    p1.setBinding( "$b" );
    assertEquals( "$b",
                  p1.asString() );
    PortableEnumParameterDefinition p2 = new PortableEnumParameterDefinition();
    p2.setValue( "PUPA" );
    p2.setBinding( "$b" );
    p2.setClassName( "Smurf" );
    assertEquals( "$b",
                  p2.asString() );
    PortableFloatParameterDefinition p3 = new PortableFloatParameterDefinition();
    p3.setValue( 1.23f );
    p3.setBinding( "$b" );
    assertEquals( "$b",
                  p3.asString() );
    PortableIntegerParameterDefinition p4 = new PortableIntegerParameterDefinition();
    p4.setValue( 123 );
    p4.setBinding( "$b" );
    assertEquals( "$b",
                  p4.asString() );
    PortableObjectParameterDefinition p5 = new PortableObjectParameterDefinition();
    p5.setBinding( "$b" );
    assertEquals( "$b",
                  p5.asString() );
    PortableStringParameterDefinition p6 = new PortableStringParameterDefinition();
    p6.setValue( "hello" );
    p6.setBinding( "$b" );
    assertEquals( "$b",
                  p6.asString() );
}