Remove group counter field when last group of specific type is removed from message
Brought to you by:
orenmnero
There is a bug in FieldMap::removeGroup() function - code doesn't remove the group counter field ( e.g. NoOrders field from "addRemoveGroup" test case ) when last group object of specific ID ( FIX42::NewOrderList::NoOrders from test case ) is removed from the message.
Also there is a typo in the test case which prevented the discovery of this issue. Small code refactoring.