OK. If that test fails this code should throw IllegalArgumentException.