Para ativar um gerador de teste para processar um novo tipo de anotação:
if (packet instanceof IRecorderAnnotationPacket) { IRecorderAnnotationPacket p = (IRecorderAnnotationPacket) packet; RecorderAnnotation annotation = getContext().resolveAnnotation(p); if (annotation == null) return true; if (MY_ANNOTATION_TYPE.equals(annotation.getType())) { // Add code to process the annotation return true; } }