@Test
public void syncExistingDatabase() {

    final Identifier identifier = new Identifier("oldId");
    when(mGoogleDriveSyncMetadata.getDatabaseSyncIdentifier()).thenReturn(identifier);
    when(mDriveStreamsManager.updateDriveFile(identifier, mDatabaseFile)).thenReturn(Single.just(identifier));
    mDriveDatabaseManager.syncDatabase();
    verify(mGoogleDriveSyncMetadata).setDatabaseSyncIdentifier(identifier);
}