### Question:
IndexUtils { public static List<Map.Entry<String, Object>> getKeyValueList( String path, Object obj, boolean fulltextIndex ) { Map<String, List<Object>> map = getKeyValues( path, obj, fulltextIndex ); List<Map.Entry<String, Object>> list = new ArrayList<Map.Entry<String, Object>>(); for ( Entry<String, List<Object>> entry : map.entrySet() ) { for ( Object value : entry.getValue() ) { list.add( new AbstractMap.SimpleEntry<String, Object>( entry.getKey(), value ) ); } } return list; }  static Map<String, List<Object>> getKeyValues( String path, Object obj, boolean fulltextIndex ); static List<Map.Entry<String, Object>> getKeyValueList( String path, Object obj, boolean fulltextIndex ); static List<Entry<String, Object>> getKeyValueList( Object obj, boolean fulltextIndex ); static List<String> keywords( String source );  }### Answer:
@Test public void testKeyValue() throws Exception { User user = new User(); user.setUsername( "edanuff" ); user.setEmail( "ed@anuff.com" ); Activity activity = Activity.newActivity( Activity.VERB_POST, null, "I ate another sammich", null, user, null, "tweet", null, null ); List<Entry<String, Object>> l = IndexUtils.getKeyValueList( activity, false ); for ( Entry<String, Object> e : l ) { logger.info( e.getKey() + " = " + e.getValue() ); } assertEquals( 7, l.size() ); }