}
@Test
public void testCallsAllsListenersWithErrorReceivedEvent() {
CloudPushImpl cloudPush = new CloudPushImpl();
CloudPushListener listener = mock( CloudPushListener.class );
CloudPushListener listener2 = mock( CloudPushListener.class );
cloudPush.addListener( listener );
cloudPush.addListener( listener2 );
environment.dispatchNotifyOnServiceObject( "ErrorReceived",
new JsonObject().add( "errorMessage", "error" ) );