public void setUp() throws Exception { // Update the configuration to make our virtualhost Persistent. // makeVirtualHostPersistent(VIRTUALHOST); setConfigurationProperty( "virtualhosts.virtualhost." + VIRTUALHOST + ".housekeeping.expiredMessageCheckPeriod", "5000"); _numMessages = 50; // Then we do the normal setup stuff like starting the broker, getting a connection etc. super.setUp(); setupConnection(); }