@Test
public void testExecute() throws MojoExecutionException, MojoFailureException, ClassNotFoundException, IOException {
mojo.execute();
File outputSer = new File(project.getBuild().getDirectory() + "/querytranslator/output.ser");
assertThat(outputSer).isNotNull().exists();
Serializer s = new Serializer(project);
ResultVO r = s.deserialize();
assertThat(r).isNotNull();
Collection<PackageVO> packages = r.getPackages();
assertThat(packages).isNotNull().isNotEmpty().hasSize(3);
Collection<EntityVO> entities = r.getPackages().iterator().next().getEntities();
assertThat(entities).isNotNull().isNotEmpty().hasSize(TestInfo.numberOfEntities - TestInfo.numberOfEntitiesInGenericPackage - TestInfo.numberOfEntitiesInSubPackage);