E.g., see CredentialFlagsTest.java, which covers some (but not all) flag scenarios. We need to ensure that every Flag class has a unit test that covers:
- All flag values
- JSON serialization/deserialization of each flag value.
- JSON serialization/deserialization of empty flags.
- JSON serialization/deserialization of unset flags.
This issue was instigated by the Batch work where serialization of empty/unset BatchFlags triggered unhandled behavior.