question: public void testApplyPortOffset ( ) { AbstractLocalConfiguration configuration = new LocalConfigurationThatSupportsProperty ( Arrays . asList ( new String [ ] { GeneralPropertySet . PORT_OFFSET , GeneralPropertySet . RMI_PORT , ServletPropertySet . PORT } ) ) ; configuration . setProperty ( GeneralPropertySet . PORT_OFFSET , "100" ) ; configuration . setProperty ( GeneralPropertySet . RMI_PORT , "1099" ) ; configuration . setProperty ( ServletPropertySet . PORT , "8080" ) ; configuration . applyPortOffset ( ) ; assertEquals ( "1199" , configuration . getPropertyValue ( GeneralPropertySet . RMI_PORT ) ) ; assertEquals ( "8180" , configuration . getPropertyValue ( ServletPropertySet . PORT ) ) ; configuration . applyPortOffset ( ) ; assertEquals ( "1199" , configuration . getPropertyValue ( GeneralPropertySet . RMI_PORT ) ) ; assertEquals ( "8180" , configuration . getPropertyValue ( ServletPropertySet . PORT ) ) ; }
target:  Test the apply port offset.