@Test
public void writeRead() throws Exception {

    try (FDBRecordContext context = fdb.openContext()) {
        openTypedRecordStore(context);
        TestRecords1Proto.MySimpleRecord.Builder recBuilder = TestRecords1Proto.MySimpleRecord.newBuilder();
        recBuilder.setRecNo(1);
        recBuilder.setStrValueIndexed("abc");
        recBuilder.setNumValueUnique(123);
        recordStore.saveRecord(recBuilder.build());
        context.commit();
    }
    try (FDBRecordContext context = fdb.openContext()) {
        openTypedRecordStore(context);
        TestRecords1Proto.MySimpleRecord myrec1 = recordStore.loadRecord(Tuple.from(1L)).getRecord();
        assertNotNull(myrec1);
        assertEquals("abc", myrec1.getStrValueIndexed());
        assertEquals(123, myrec1.getNumValueUnique());
        context.commit();
    }
}