DXRecord extends DXDataObject { public static Builder newRecord() { return new Builder(); } private  DXRecord(String recordId, DXContainer project, DXEnvironment env, JsonNode describe); private  DXRecord(String recordId, DXEnvironment env); static DXRecord getInstance(String recordId); static DXRecord getInstance(String recordId, DXContainer project); static DXRecord getInstanceWithEnvironment(String recordId, DXContainer project,
            DXEnvironment env); static DXRecord getInstanceWithEnvironment(String recordId, DXEnvironment env); static Builder newRecord(); static Builder newRecordWithEnvironment(DXEnvironment env); @Override DXRecord close(); @Override DXRecord closeAndWait(); @Override Describe describe(); @Override Describe describe(DXDataObject.DescribeOptions options); @Override Describe getCachedDescribe();  }
@Test public void testBuilder() { DXDataObjectTest.testBuilder(testProject, new DXDataObjectTest.BuilderFactory<DXRecord.Builder, DXRecord>() { @Override public DXRecord.Builder getBuilder() { return DXRecord.newRecord(); } }); }
@Test public void testDataObjectMethods() { DXDataObjectTest.BuilderFactory<DXRecord.Builder, DXRecord> builderFactory = new DXDataObjectTest.BuilderFactory<DXRecord.Builder, DXRecord>() { @Override public DXRecord.Builder getBuilder() { return DXRecord.newRecord(); } }; DXDataObjectTest.testOpenDataObjectMethods(testProject, builderFactory); DXDataObjectTest.testClosedDataObjectMethods(testProject, builderFactory); }