order.verify( remoteObject ).listen( "Pause", false );
}
@Test
public void testRemoveEventListenersTransportsListenOperationOnce() {
App app = new AppImpl();
AppListener listener = mock( AppListener.class );
AppListener listener2 = mock( AppListener.class );
app.addEventListener( PAUSE, listener );
app.addEventListener( PAUSE, listener2 );
app.removeEventListener( PAUSE, listener );
app.removeEventListener( PAUSE, listener2 );
RemoteObject remoteObject = environment.getServiceObject();
InOrder order = inOrder( remoteObject );
order.verify( remoteObject, times( 1 ) ).listen( "Pause", true );
order.verify( remoteObject, times( 1 ) ).listen( "Pause", false );