@Test
public void createResourcesWithSamePathsShouldFail() {

    final Collection<Subject> subjectList = Arrays.asList(SUBJECT_1, SUBJECT_1);
    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> ImmutableSubjects.of(subjectList))
            .withMessageStartingWith("There is more than one Subject with the ID")
            .withNoCause();
}