private AlertCurrentEntity getMockedAlertCurrentEntity() {
    AlertCurrentEntity current = createNiceMock(AlertCurrentEntity.class);
    EasyMock.expect(current.getMaintenanceState()).andReturn(MaintenanceState.OFF).anyTimes();
    return current;
  }
Gets an {@link AlertCurrentEntity} with some mocked calls expected.

@return
ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertStateChangedEventTest.java