// Build and persist application data test data
ApplicationDb testApplication = new ApplicationDb();
testApplication.setId("app");
entityManager.persist(testApplication);
ApplicationDataMapDb applicationDataMap1 = buildApplicationDataTemplate(testApplication, "canonical", "2");
applicationDataMap1.getValues().put("size", "100");
entityManager.persist(applicationDataMap1);
ApplicationDataMapDb applicationDataMap2 = buildApplicationDataTemplate(testApplication, "john.doe", "0");
entityManager.persist(applicationDataMap2);
ApplicationDataMapDb applicationDataMap3 = buildApplicationDataTemplate(testApplication, "george.doe", "2");
entityManager.persist(applicationDataMap3);
ApplicationDataMapDb applicationDataMap4 = buildApplicationDataTemplate(testApplication, "jane.doe", "7");
entityManager.persist(applicationDataMap4);
ApplicationDataMapDb applicationDataMap5 = buildApplicationDataTemplate(testApplication, "maija.m", null);
entityManager.persist(applicationDataMap5);
// Commit transaction
entityManager.getTransaction().commit();
}