Add an unit test for PR#34
Fixed to use received flag instead of Thread.sleep(1000)

Signed-off-by: Tsuyoshi Ozawa <ozawa.tsuyoshi@gmail.com>
Use CountDownLatch in TestFluentLogger#testFlushOnClose
Merge pull request #36 from fluent/add_test_for_pr34

Add an unit test for PR#34