@Test
 public void testAppHasMultipleVersions() throws Exception {
   ApplicationEntity application = applicationRepository.findOne(savedApplication.getId());
   List<VersionEntity> appVersions = application.getVersionEntities();
   assertThat(appVersions.size()).isEqualTo(2);
 }
 @Test
 public void testVersionsAreSaved() throws Exception {
   ApplicationEntity one = applicationRepository.findOne(savedApplication.getId());
   assertThat(one.getVersionEntities()).isNotEmpty();
 }