@Test
    public void write() throws Exception {

        final String sync = "sync";
        final ContentValues syncValues = new ContentValues();
        syncValues.put(sync, sync);
        when(syncStateAdapter.writeUnsynced(syncState)).thenReturn(syncValues);

        final ContentValues contentValues = columnDatabaseAdapter.write(column, new DatabaseOperationMetadata());
        assertEquals(Integer.valueOf(TYPE), contentValues.getAsInteger(AbstractColumnTable.COLUMN_TYPE));
        assertEquals(sync, contentValues.getAsString(sync));
        assertFalse(contentValues.containsKey(AbstractColumnTable.COLUMN_ID));
        assertEquals(CUSTOM_ORDER_ID, (long) contentValues.getAsLong(AbstractSqlTable.COLUMN_CUSTOM_ORDER_ID));
        assertEquals(COLUMN_UUID.toString(), contentValues.getAsString(AbstractSqlTable.COLUMN_UUID));
}