Also use JUnit's Rule and ExpectedException to test that the expected exception is raised, rather than explicitly catching it and inspecting the message. Change-Id: I961745827de64fc26bfb72b18524e3cb3ecf40d2
Also use JUnit's Rule and ExpectedException to test that the expected exception is raised, rather than explicitly catching it and inspecting the message. Change-Id: I961745827de64fc26bfb72b18524e3cb3ecf40d2