Code illustrating using JUnit4 to test code:
This code follows an "all tests are local" maxim: not introducing named
constants unless the constant is shared between tests. The concern is
that introducing lots of named constants such as
static final int NUM_X = 9, NUM_X_TO_FOURTH = 6561;
can reduce readability and maintainability, especially when scaled to
larger examples.