ObjectIdsTest: Migrate from try-catch-fail to assertThrows
ObjectIdsTest: Migrate from try-catch-fail to assertThrows

Change-Id: I7fd28a4f18933401f4975629b51ca8bab074ab2e

GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit