@Test
public void testReservedCharacterEscapingInUserId() {
IdGenerator idGenerator = new IdGeneratorImpl();
char[] chars = new char[] {'.', ',', '=' };
for (char c : chars) {
RecordId recordId = idGenerator.newRecordId("hello" + c + "world");
String idString = recordId.toString();
assertEquals("USER.hello\\" + c + "world", idString);
}
}