Example of throwing and exception for a mocked void return type