@Test
public void testReaperThreadSpawnAndStop() throws Exception {

	Assert.assertFalse(SafetyNetCloseableRegistry.isReaperThreadRunning());
	try (SafetyNetCloseableRegistry ignored = new SafetyNetCloseableRegistry()) {
		Assert.assertTrue(SafetyNetCloseableRegistry.isReaperThreadRunning());
		try (SafetyNetCloseableRegistry ignored2 = new SafetyNetCloseableRegistry()) {
			Assert.assertTrue(SafetyNetCloseableRegistry.isReaperThreadRunning());
		}
		Assert.assertTrue(SafetyNetCloseableRegistry.isReaperThreadRunning());
	}
	Assert.assertFalse(SafetyNetCloseableRegistry.isReaperThreadRunning());
}