Here is an example using Junit.