### Question:
DetachedEntityListImpl extends AbstractList<Entity> implements EntityList { @Override public SearchCriteriaBuilder find() { throw new UnsupportedOperationException("method find() is not supported for DetachedEntityList"); } DetachedEntityListImpl(final DataDefinition dataDefinition, final List<Entity> entities); @Override SearchCriteriaBuilder find(); @Override Entity get(final int index); @Override int size(); @Override boolean isEmpty(); @Override String toString();  }### Answer:
@Test(expected = UnsupportedOperationException.class) public final void shouldThrowExceptionWhenCallingFindMethod() throws Exception { detachedList.find(); }