Turned this into a full junit test.