private AlertDefinitionEntity getMockAlertDefinition() {
    AlertDefinitionEntity definition = createNiceMock(AlertDefinitionEntity.class);
    EasyMock.expect(definition.getDefinitionId()).andReturn(1L).anyTimes();
    EasyMock.expect(definition.getServiceName()).andReturn("HDFS").anyTimes();
    EasyMock.expect(definition.getLabel()).andReturn("hdfs-foo-alert").anyTimes();
    EasyMock.expect(definition.getDescription()).andReturn("HDFS Foo Alert").anyTimes();

    return definition;
  }
Gets an {@link AlertDefinitionEntity} with some mocked calls expected.

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