Another case where a simple junit test probably would have been preferable