Added MockServer for unit testing.