It is not the idea to test for this in integration tests.
Tests for this already exist in https://github.com/ezsystems/ezpublish-kernel/pull/256/files#L8R287