@Test
public void shouldFailWhenTryingToGetIncompatibleCollectionAsList() {

    // given
    DescribedCollection<String> collection = new DescribedCollection<String>(RepositoryName.from("repository"), new HashSet<String>(Arrays.asList("1")));
    // when
    catchException(collection).itemsList();
    // then
    assertThat(caughtException()).isInstanceOf(IllegalStateException.class);
}