@Test
public void testClose() {

	ResourceGuard resourceGuard = new ResourceGuard();
	Assert.assertFalse(resourceGuard.isClosed());
	resourceGuard.close();
	Assert.assertTrue(resourceGuard.isClosed());
	try {
		resourceGuard.acquireResource();
		Assert.fail();
	} catch (IOException ignore) {
	}
}