Extracted assertThrows to Assertions class