A better way to test private methods.