Replace ExpectedException with assertThrows

Change-Id: Ie308e81f3bcbfd2e0e25b3ad49929d9b2307c834
1 file changed