### Question:
APIData extends RecordData<T> { public String getApiId(APICaller caller) { return getApiId(caller.getAPIKey()); } protected  APIData(T inRecord); String getApiId(APICaller caller); String getApiId(String callerApiKey); static long fromObjectID(String inAPIId, ObjectClass inObjectClass, String inAPIKey);  }### Answer:
@Test public void testToObjectID() { final VObjectData theObject = VObjectData.getData(new VObjectMock(61009, "F00004000001", "test42", null, HARDWARE.V2, Factories.TIMEZONE.findByJavaId("Europe/Paris"), null)); final String theObjectID = theObject.getApiId(APIDataTest.API_KEY); Assert.assertEquals("ee51Od4a5fab1", theObjectID); }
@Test public void fullTest() { final VObjectData theObject = VObjectData.getData(new VObjectMock(61009, "F00004000001", "test42", null, HARDWARE.V2, Factories.TIMEZONE.findByJavaId("Europe/Paris"), null)); final String encryptedId = theObject.getApiId(APIDataTest.API_KEY); final VObjectData theRetrievedObject = VObjectData.findByAPIId(encryptedId, APIDataTest.API_KEY); Assert.assertEquals(theObject, theRetrievedObject); }