Package com.oneandone.snmpman

The Snmpman is a command-line application that simulates SNMP-capable devices.
It also can be used within Unit tests which require the usage of SNMP devices. You can start and stop all agents with pre- and post unit-test execution methods, which are available in probably every Unit-Test framework.
Check the documentation of Snmpman to get more information on the execution.