### Question:
Generators { protected Map<Matcher<ASTType>, ReadWriteGenerator> getGenerators() { return generators; } Generators(ASTClassFactory astClassFactory); boolean matches(ASTType type); ReadWriteGenerator getGenerator(ASTType type); void addPair(Class clazz, String readMethod, String writeMethod); void addPair(Class clazz, String readMethod, String writeMethod, Class writeParam); void addPair(String clazzName, String readMethod, String writeMethod); void addPair(String clazzName, String readMethod, String writeMethod, String writeParam); void addPair(ASTType type, String readMethod, String writeMethod, String writeParam); void addPair(Class clazz, ReadWriteGenerator generator); void addPair(ASTType type, ReadWriteGenerator generator); void add(Matcher<ASTType> matcher, ReadWriteGenerator generator);  }### Answer:
@Test public void testParcelMethodUsage() throws NoSuchMethodException { for (Map.Entry<Matcher<ASTType>, ReadWriteGenerator> entry : ((Generators)generators).getGenerators().entrySet()) { if(entry.getValue() instanceof ReadWriteGeneratorBase){ ReadWriteGeneratorBase readWriteGeneratorBase = (ReadWriteGeneratorBase)entry.getValue(); Method readMethod = Parcel.class.getMethod(readWriteGeneratorBase.getReadMethod(), readWriteGeneratorBase.getReadMethodParams()); assertNotNull(readMethod); Method writeMethod = Parcel.class.getMethod(readWriteGeneratorBase.getWriteMethod(), readWriteGeneratorBase.getWriteMethodParams()); assertNotNull(writeMethod); } } }