### Question:
V_000004 implements Migrateable { @Override public void executeMigration(Datastore datastore) { PriceList priceList = datastore.createQuery(PriceList.class).field("lotteryIdentifier").equal(EuroJackpotLottery.IDENTIFIER).get(); if (priceList == null) { priceList = new PriceList(); } priceList.setLotteryIdentifier(EuroJackpotLottery.IDENTIFIER); priceList.setPricePerField(200); priceList.setPriceSuper6(125); priceList.setPriceSpiel77(250); priceList.setPriceGluecksspirale(500); priceList.setFeeGluecksspirale(60); priceList.setFeeFirstDrawing(60); priceList.setFeeSecondDrawing(40); priceList.setValidFrom(getInitialDate()); datastore.save(priceList); }  @Override void executeMigration(Datastore datastore);  }### Answer:
@Test public void executeMigration() throws Exception { V_000004 cut = new V_000004(); cut.executeMigration(getDatastore()); PriceList priceList = getDatastore().createQuery(PriceList.class).field("lotteryIdentifier").equal(EuroJackpotLottery.IDENTIFIER).get(); assertThat(priceList, notNullValue()); assertThat(priceList.getValidFrom(), is(cut.getInitialDate())); assertThat(priceList.getPricePerField(), is(200)); assertThat(priceList.getPriceSuper6(), is(125)); assertThat(priceList.getPriceSpiel77(), is(250)); assertThat(priceList.getPriceGluecksspirale(), is(500)); assertThat(priceList.getFeeFirstDrawing(), is(60)); assertThat(priceList.getFeeSecondDrawing(), is(40)); }