This page describes how to create unit tests inside of a module. For details on writing unit tests in trunk, see the main Testing page.
Also check out Module Testing against multiple versions of OpenMRS to see how to configure your module poms to allow testing against different versions of OpenMRS core.
...