Adding code snippet to show test method.