throws MalformedURIException,
RegistrationFailureException
{
// Register and unregister this test
registerTestAsResource( );
WSResource result = m_manager.find( "UNIT_TEST_PORT", "UNIT_TEST_RESOURCE_ID_1234" );
m_wasUnRegistered = false;
m_manager.unregister( result );
Assert.assertTrue( "Resource was unregistered without being notified.", m_wasUnRegistered );
WSResource resultPostUnreg = m_manager.find( "UNIT_TEST_PORT", "UNIT_TEST_RESOURCE_ID_1234" );
Assert.assertNull( resultPostUnreg );
// Register and unregister this test
registerTestAsSingletonResource( );
WSResource resultSingle = m_manager.find( "UNIT_TEST_PORT", null );
m_wasUnRegistered = false;
m_manager.unregister( resultSingle );
Assert.assertTrue( "Resource was unregistered without being notified.", m_wasUnRegistered );
WSResource resultPostUnregSingle = m_manager.find( "UNIT_TEST_PORT", null );
Assert.assertNull( resultPostUnregSingle );
}