### Question:
FunctionApp { public static JsonObject main(JsonObject args) { JsonObject response = new JsonObject(); response.addProperty("greetings", "Hello! Welcome to OpenWhisk on OpenShift"); return response; }  static JsonObject main(JsonObject args);  }### Answer:
@Test public void testFunction() { JsonObject args = new JsonObject(); JsonObject response = FunctionApp.main(args); assertNotNull(response); String greetings = response.getAsJsonPrimitive("greetings").getAsString(); assertNotNull(greetings); assertEquals("Hello! Welcome to OpenWhisk on OpenShift", greetings); }