@Test
public void testEquals() {

    assertTrue(m_alarmParameters.equals(m_alarmParameters2));
    assertFalse(m_AlarmParametersDifferentSeverity.equals(m_alarmParameters2));
    assertFalse(m_alarmParameters.equals(null));
    assertFalse(m_alarmParameters.equals("String literal"));
    m_alarmParameters = new AlarmParameters(null, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    m_alarmParameters2 = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    m_alarmParameters3 = new AlarmParameters(TEST_ALARM_TYPE_ID, null, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    assertFalse(m_alarmParameters3.equals(m_alarmParameters2));
    assertFalse(m_alarmParameters.equals(m_alarmParameters2));
    m_alarmParameters = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    m_alarmParameters2 = new AlarmParameters(TEST_ALARM_TYPE_ID2, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    assertFalse(m_alarmParameters.equals(m_alarmParameters2));
    m_alarmParameters = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            null);
    m_alarmParameters2 = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    assertFalse(m_alarmParameters.equals(m_alarmParameters2));
    m_alarmParameters = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    m_alarmParameters2 = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT2);
    assertFalse(m_alarmParameters.equals(m_alarmParameters2));
    m_alarmParameters = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, null, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    m_alarmParameters2 = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    assertFalse(m_alarmParameters.equals(m_alarmParameters2));
    m_alarmParameters = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    m_alarmParameters2 = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange2, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    assertFalse(m_alarmParameters.equals(m_alarmParameters2));
    m_alarmParameters = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, null, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    m_alarmParameters2 = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    assertFalse(m_alarmParameters.equals(m_alarmParameters2));
    m_alarmParameters = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    m_alarmParameters2 = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE2, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    assertFalse(m_alarmParameters.equals(m_alarmParameters2));
    m_alarmParameters = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    m_alarmParameters2 = new AlarmParameters(TEST_ALARM_TYPE_ID, TEST_ALARM_TYPE_QUALIFIER, TEST_RESOURCE, m_lastStatusChange, m_lastPerceivedSeverity,
            TEST_LAST_ALARM_TEXT);
    assertTrue(m_alarmParameters.equals(m_alarmParameters2));
    assertEquals(m_alarmParameters.getMountKey(), m_alarmParameters2.getMountKey());
}