### Question:
FindAllDmnAssetsQuery extends AbstractFindQuery implements NamedQuery { String[] requiredTermNames() { return new String[]{ DMNValueRepositoryRootIndexTerm.TERM, DMNValueFileExtensionIndexTerm.TERM, }; } @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 testRequiredTermNames() { final String[] expected = {DMNValueRepositoryRootIndexTerm.TERM, DMNValueFileExtensionIndexTerm.TERM,}; final String[] actual = query.requiredTermNames(); assertEquals(expected.length, actual.length); assertEquals(expected[0], actual[0]); assertEquals(expected[1], actual[1]); }