@Test
public void testGetStatus() {

  /* Mock message broker connections */
  MessageReceiverImpl receiver = EasyMock.createMock(MessageReceiverImpl.class);
  EasyMock.expect(receiver.isConnected()).andReturn(true).once();
  EasyMock.expect(receiver.isConnected()).andReturn(false).once();
  MessageSenderImpl sender = EasyMock.createMock(MessageSenderImpl.class);
  EasyMock.expect(sender.isConnected()).andReturn(true).once();
  EasyMock.expect(sender.isConnected()).andReturn(false).once();
  EasyMock.replay(sender, receiver);
  MessageBrokerServiceEndpoint endpoint = new MessageBrokerServiceEndpoint();
  endpoint.setMessageReceiver(receiver);
  endpoint.setMessageSender(sender);
  assertEquals(endpoint.getStatus().getStatus(), SC_NO_CONTENT);
  assertEquals(endpoint.getStatus().getStatus(), SC_SERVICE_UNAVAILABLE);
}