### Question:
ProviderParamsDao extends Dao { public List<ProviderParams> getAll() { SearchResponse response = getRequest( DAO_INDEX_KEY, DAO_TYPE_KEY ) .setSize( MAX_RESULT_SIZE ) .execute() .actionGet(); LOG.debug( "response: {}", response ); SearchHit hits[] = response.getHits().hits(); ArrayList<ProviderParams> list = new ArrayList<ProviderParams>(); for ( SearchHit hit : hits ) { list.add( toProviderParams( hit ) ); } return list; } @Inject  ProviderParamsDao( IElasticSearchClient e ); boolean save( final ProviderParams pp ); ProviderParams getByUser( String username ); List<ProviderParams> getAll(); boolean delete( String username ); static final String DAO_INDEX_KEY; static final String DAO_TYPE_KEY; }### Answer:
@Test public void testGetAll() throws Exception { LOG.info( "\n===ProviderParamsDaoTest.testGetAll===\n" ); List<ProviderParams> list = ESSuiteTest.ppDao.getAll(); for ( ProviderParams pp : list ) { LOG.info(pp.toString()); } assertEquals( 2, list.size() ); }