@Test
public void writeUnsynced() throws Exception {

    final String sync = "sync";
    final ContentValues syncValues = new ContentValues();
    syncValues.put(sync, sync);
    when(syncStateAdapter.write(syncState)).thenReturn(syncValues);
    final ContentValues contentValues = columnDatabaseAdapter.write(column, new DatabaseOperationMetadata(OperationFamilyType.Sync));
    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));
}