Unit test for java core issue #358

Add unit test case for issue #358

Fix unit test case to use CountDownLatch

Fix unit test case for #358

fix testContinuousPushReplicationGoesIdle() for test blocking issue

Add another test case for replicator state

update comment in the unit test case

Refactor createDocWithAttachments

didn't actually need this, but will be useful going forward.

Make changes to testContinuousPushReplicationGoesIdleTooSoon2

Rename to testContinuousPushReplicationGoesIdleTwice()

Rename to testContinuousPushReplicationGoesIdleTooSoon()

Adjust unit test case for

Revert to original test steps for testContinuousPushReplicationGoesIdle() unit test.
Update submodule