@Test
public void testDispatch_notDefinedProperties() throws Exception {

  SNMPDispatcher dispatcher = new SNMPDispatcher(DEFAULT_SNMP_PORT);
  Notification notification = mock(Notification.class);
  notification.Callback = mock(DispatchCallback.class);
  notification.CallbackIds = new ArrayList<>();
  notification.DispatchProperties = new HashMap<String, String>();
  dispatcher.dispatch(notification);
  verify(notification.Callback).onFailure(notification.CallbackIds);
  verify(notification.Callback, never()).onSuccess(notification.CallbackIds);
}