Migrate from "expected = " to assertThrows

By using assertThrows we make it more explicit on which statements the
exception is expected to be thrown. Particularly in the ConfigUtil test
this makes the code more readable; the current implementation has calls
to the assertThat methods that are never actually executed because the
exception is thrown.

Change-Id: I5db0f469af6b2fe4857dd8134a9acb21ee997361
4 files changed