Service virtualization goes beyond stubs and mocks by creating a more complete simulation of services and APIs. Stubs are only small system routines that don’t involve the entire program. Mocks mimic actual code but not the entire program. Service virtualization tests an application end-to-end.