Test Case
A test case is a unit of testing for a service that provides:

service to be tested

inputs to the service

expected output from the service
A test case can also define expected output from a service as an exception or error. The service returns the defined errors when incorrect data is sent to it.