Copy over tests for Spring utility code

Recently, some Spring utility code was copied into Reactor (it was
copied to avoid a dependency on Spring). This commit copies over the
corresponding tests.