@Test
public void build() throws Exception {

    final Category category = new CategoryBuilderFactory()
            .setId(PRIMARY_KEY_INT)
            .setUuid(CAT_UUID)
            .setName(NAME)
            .setCode(CODE)
            .setSyncState(mGetSyncState)
            .setCustomOrderId(CUSTOM_ORDER_ID)
            .build();
    assertEquals(category, mCategoryDatabaseAdapter.build(mCategory, PRIMARY_KEY_INT, CAT_UUID, mock(DatabaseOperationMetadata.class)));
    assertEquals(category.getSyncState(), mCategoryDatabaseAdapter.build(mCategory, PRIMARY_KEY_INT, CAT_UUID, mock(DatabaseOperationMetadata.class)).getSyncState());
}