TRMSim-WSN (Trust and Reputation Models Simulator for Wireless Sensor Networks) is a Java-based simulator aimed to test Trust and Reputation models for WSNs.
It provides several Trust and Reputation models and new ones can be easily added.It allows researchers to test and compare their trust and reputation models against a wide range of WSNs. They can decide whether they want static or dynamic networks, the percentage of fraudulent nodes, the percentage of nodes acting as clients or servers, etc.It has been designed to easily adapt and integrate a new model within the simulator. Only a few classes have to be implementend in order to carry out this task.
More info here.