Purpose
To give the sanity checker an entity to perform checks upon.Example
SanityChecker checker = new SanityChecker()checker.check('Item 1', 1)
checker.check('Item 2', 2, 'Sample Input')
IllegalArgumentException
check
throws an IllegalArgumentException
if the name parameter is
null
or an empty String
("").