@Test
 public void testFromExternalId() {
   String externalId = "A123";
   RecordRef ref =
       RecordReferences.from(RecordTypeEnum.ACCOUNT, externalId, RecordIdType.EXTERNAL)
           .createRef();
   assertEquals(externalId, ref.getExternalId());
   assertNull(ref.getInternalId());
 }
 @Test(expected = IllegalArgumentException.class)
 public void testFromBadInputType() {
   RecordReferences.from(null, "A126", RecordIdType.INTERNAL);
 }
 @Test(expected = IllegalArgumentException.class)
 public void testFromBadInputId() {
   RecordReferences.from(RecordTypeEnum.ACCOUNT, null, RecordIdType.INTERNAL);
 }