@Test
public void testValidateAlertValidation_incorrectSNMPversion() throws Exception {

  Map<String, Object> properties = new HashMap<String, Object>();
  properties.put(SNMPDispatcher.SUBJECT_OID_PROPERTY, "1");
  properties.put(SNMPDispatcher.BODY_OID_PROPERTY, "2");
  properties.put(SNMPDispatcher.PORT_PROPERTY, "162");
  properties.put(SNMPDispatcher.TRAP_OID_PROPERTY, "1.3.6.1.6.3.1.1.5.4");
  properties.put(SNMPDispatcher.SNMP_VERSION_PROPERTY, "SNMPv4");
  properties.put(SNMPDispatcher.COMMUNITY_PROPERTY, "public");
  NotificationDispatcher dispatcher = new SNMPDispatcher(DEFAULT_SNMP_PORT);
  TargetConfigurationResult configValidationResult = dispatcher.validateTargetConfig(properties);
  assertEquals(TargetConfigurationResult.Status.INVALID, configValidationResult.getStatus());
}