### Question:
FindAllDmnAssetsQuery extends AbstractFindQuery implements NamedQuery { Predicate<ValueIndexTerm> repositoryRootIndexTermPredicate() { return (t) -> (t instanceof DMNValueRepositoryRootIndexTerm); } @Inject  FindAllDmnAssetsQuery(final FileDetailsResponseBuilder responseBuilder); @Override String getName(); @Override Query toQuery(final Set<ValueIndexTerm> terms); @Override Sort getSortOrder(); @Override ResponseBuilder getResponseBuilder(); @Override void validateTerms(final Set<ValueIndexTerm> queryTerms); static String NAME; }### Answer:
@Test public void testRepositoryRootIndexTermPredicateWhenItReturnsTrue() { assertTrue(query.repositoryRootIndexTermPredicate().test(new DMNValueRepositoryRootIndexTerm(""))); }
@Test public void testRepositoryRootIndexTermPredicateWhenItReturnsFalse() { assertFalse(query.repositoryRootIndexTermPredicate().test(new DMNValueFileExtensionIndexTerm())); }