Start to use Groovy to write unit tests

Current test code is not readable, reader cannot understand which bugInstance is expected.

To make it clear, using Map is good choice. But Java has no literal for Map. So I want to use Groovy to write our unit test -- it makes our code easy to read.