@Test(expected = IllegalArgumentException.class)
public void createResourcesWithSamePathsShouldFail() {

    final Collection<Resource> resourceList = new ArrayList<>();
    resourceList.add(Resource.newInstance(ResourceKey.newInstance(RESOURCE_TYPE, KNOWN_RESOURCE_PATH_1),
            EffectedPermissions.newInstance(PERMISSIONS_ALL, PoliciesModelFactory.noPermissions())));
    resourceList.add(Resource.newInstance(ResourceKey.newInstance(RESOURCE_TYPE, KNOWN_RESOURCE_PATH_1),
            EffectedPermissions.newInstance(PoliciesModelFactory.noPermissions(),
                    PoliciesModelFactory.newPermissions(TestConstants.Policy.PERMISSION_READ))));
    ImmutableResources.of(resourceList);
}