StringList implements Collection<String>, AsciiStringable { public boolean contains(final String string) { return this.content.contains(string); } StringList(final String string); boolean remove(final String string); boolean addAll(final String string); boolean add(final String string); @Override boolean remove(final Object o); @Override @SuppressWarnings("ALL") boolean containsAll(final Collection<?> collection); @Override @SuppressWarnings("ALL") boolean addAll(final Collection<? extends String> collection); @Override @SuppressWarnings("ALL") boolean removeAll(final Collection<?> collection); @Override @SuppressWarnings("ALL") boolean retainAll(final Collection<?> collection); @Override void clear(); boolean contains(final String string); @Override String toString(); @Override AsciiString toAsciiString(); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(final Object o); @Override Iterator<String> iterator(); @Override Object[] toArray(); @Override @SuppressWarnings("ALL") T[] toArray(final T[] ts);  }
@Test void contains() { final StringList list = createNewStringList(); final boolean result = list.contains("foo"); assertTrue(result); }