Could be unit tested. Probably fits best in a new JUnit test case under test/junit.