JERSEY-1488: @Context and @PostConstruct makes the App not to be deployed

 - added test to confirm that this issue does not occur anymore
 - tested also on GF (no EJB testcase is present)

Change-Id: Ia9984ba17a1beb43c582aa45b97f7291c76dd85d
Fixed JerseyInvocation unit test.

- added latch to wait for the callback to finish before evaluating assertion.

Change-Id: Id0548644cc31ad97483579cb6ced5b2a490148ce
Signed-off-by: Marek Potociar <marek.potociar@oracle.com>
Merge "JERSEY-1488: @Context and @PostConstruct makes the App not to be deployed"