@Test
public void testComputeIfPresent() {

	try {
		_concurrentMap.computeIfPresent(null, null);
		Assert.fail("Should throw NullPointerException");
	}
	catch (NullPointerException nullPointerException) {
		Assert.assertEquals(
			"Key is null", nullPointerException.getMessage());
	}
	try {
		_concurrentMap.computeIfPresent(_testKey, null);
		Assert.fail("Should throw NullPointerException");
	}
	catch (NullPointerException nullPointerException) {
		Assert.assertEquals(
			"Remapping function is null",
			nullPointerException.getMessage());
	}
	Assert.assertNull(
		_concurrentMap.computeIfPresent(_testKey, (key, value) -> null));
	_assertEventQueue(Event.MAP_KEY_FOR_QUERY);
	Assert.assertNull(
		_concurrentMap.computeIfPresent(
			_testKey, (key, value) -> _testValue1));
	_assertEventQueue(Event.MAP_KEY_FOR_QUERY);
	Assert.assertNull(_concurrentMap.put(_testKey, _testValue1));
	_assertEventQueue(Event.MAP_KEY, Event.MAP_VALUE);
	Assert.assertSame(
		_testValue2,
		_concurrentMap.computeIfPresent(
			_testKey, (key, value) -> _testValue2));
	_assertEventQueue(
		Event.MAP_KEY_FOR_QUERY, Event.UNMAP_VALUE, Event.MAP_VALUE);
	Assert.assertNull(
		_concurrentMap.computeIfPresent(_testKey, (key, value) -> null));
	_assertEventQueue(Event.MAP_KEY_FOR_QUERY, Event.UNMAP_VALUE);
	Assert.assertNull(_concurrentMap.get(_testKey));
	_assertEventQueue(Event.MAP_KEY_FOR_QUERY);
}