### Question:
CreateEngagement { public static JsonObject main(JsonObject args) { JsonObject response = new JsonObject(); EngagementStore store = new EngagementStore(args, "engagements"); String[] tags = new String[] {"java", "cloud"}; Engagement jfokus = new Engagement( "JFokus 2019", "Stockholm",new Date()); jfokus.setTags(tags); jfokus = store.persist(jfokus); System.out.println(jfokus.get_id()); System.out.println(jfokus.get_rev()); response.addProperty("id", jfokus.get_id()); return response; }  static JsonObject main(JsonObject args);  }### Answer:
@Test @Ignore public void testFunction() { JsonObject args = new JsonObject(); JsonObject response = CreateEngagement.main(args); assertNotNull( response.getAsJsonPrimitive("id").getAsString()); }