Pergunta de entrevista da empresa Accenture

He asked about unit test case?how n what do I use for writing unit test for restapi?and how do I trigger n encounter erroneous situation?again What tool did I use for restapi testing?