Your class mediator might not be picked up and updated if you use an existing package when creating it. For best results, use WSO2 EI Tooling for debugging Class mediators.
For more examples, see:
- Sample 380: Writing your own Custom Mediation in Java
- Sample 381: Class Mediator to CBR Binary Messages
Description of the Class Mediator in WSO2 EI.