@Test
public void updateProxyConnector()
throws Exception
{
mockAuditListener.clearEvents();
ProxyConnector proxyConnector = proxyConnectorAdmin.getProxyConnector( "internal", "central" );
assertNotNull( proxyConnector );
proxyConnector.setDisabled( false );
proxyConnectorAdmin.updateProxyConnector( proxyConnector, getFakeAuditInformation() );
proxyConnector = proxyConnectorAdmin.getProxyConnector( "internal", "central" );
assertFalse( proxyConnector.isDisabled() );
proxyConnector.setDisabled( true );
proxyConnectorAdmin.updateProxyConnector( proxyConnector, getFakeAuditInformation() );
proxyConnector = proxyConnectorAdmin.getProxyConnector( "internal", "central" );
assertTrue( proxyConnector.isDisabled() );
proxyConnector.setOrder( 4 );
proxyConnectorAdmin.updateProxyConnector( proxyConnector, getFakeAuditInformation() );
proxyConnector = proxyConnectorAdmin.getProxyConnector( "internal", "central" );
assertEquals( 4, proxyConnector.getOrder() );
mockAuditListener.clearEvents();
}