}
@Test
public void updateAndDeleteVariant() {
final AndroidVariant av = new AndroidVariant();
av.setGoogleKey("KEY");
av.setDeveloper("admin");
final String uuid = av.getVariantID();
variantDao.create(av);
AndroidVariant queriedVariant = (AndroidVariant) variantDao.findByVariantID(uuid);
final String primaryKey = queriedVariant.getId();
assertThat(queriedVariant).isNotNull();
assertThat(queriedVariant.getGoogleKey()).isEqualTo("KEY");
queriedVariant.setGoogleKey("NEW_KEY");
variantDao.update(queriedVariant);
queriedVariant = (AndroidVariant) variantDao.findByVariantID(uuid);
assertThat(queriedVariant).isNotNull();
assertThat(queriedVariant.getGoogleKey()).isEqualTo("NEW_KEY");
assertThat(queriedVariant.getId()).isEqualTo(primaryKey);
variantDao.delete(queriedVariant);
assertThat(variantDao.findByVariantID(uuid)).isNull();
}