begin writing tests.

Have some tests for the JavaAlternatives resource prepared.