@Test public void resultCanBeExtractedAsHashSet() { assertThat($(integerInput).asHashSet(), instanceOf(HashSet.class)); Collection<String> stringInputAsSet = $(stringInput).asCollection(); assertTrue($(stringInput).asHashSet().containsAll(stringInputAsSet)); assertTrue(stringInputAsSet.containsAll($(stringInput).asHashSet())); }
@Test public void resultCanBeExtractedAsLinkedList() { assertThat($(integerInput).asLinkedList(), instanceOf(LinkedList.class)); assertEquals(stringInput, $(stringInput).asLinkedList()); }
@Test public void resultCanBeExtractedAsCollection() { assertThat($(integerInput).asCollection(), instanceOf(Collection.class)); assertEquals(stringInput, $(stringInput).asCollection()); }