I've committed DERBY-4187 to the Derby trunk.
This patch was contributed by Eranda Sooriyabandara, who is interning with Derby as part of the Google Summer of Code. Eranda has been working on converting Derby's old test suites to modern JUnit techniques, as well as fixing bugs in Derby. This is the first of Eranda's patches to be committed to the Derby trunk, I believe; it was a large test and quite complicated to convert.
Hopefully we'll have several more patches from Eranda before the summer is complete!