If one gateway id is already associated with account id it should not get associated with other account.
But it is still getting associated .
Here the code..`<