Mocking library based on composition