def METHOD_NAME(self):
    client = MagicMock()
    provider = MagicMock()
    provider.resource_types = [
        self._get_mock_resource_type('skip', ['2000-01-01-preview', '2000-01-01']),
        self._get_mock_resource_type('test', ['2016-01-01-preview', '2016-01-01']),
        self._get_mock_resource_type('foo', ['1999-01-01-preview', '1999-01-01']),
        self._get_mock_resource_type('preview', ['2005-01-01-preview', '2004-01-01-preview']),
        self._get_mock_resource_type('test_latest', ['2016-01-01-preview', '2015-01-01'])
    ]
    client.providers.get.return_value = provider
    return client