/*
 * Copyright 2015 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License
 */
package io.atomix.copycat.client;

import org.testng.annotations.Test;

/**
 * Session recovery strategies test.
 *
 * @author <a href="http://github.com/kuujo>Jordan Halterman</a>
 */
@Test
public class RecoveryStrategiesTest {
}

@@ -675,16 +675,99 @@
 .Test;%0A%0A
+import static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.verify;%0A%0A
 /**%0A * S
@@ -915,10 +915,579 @@
 sTest %7B%0A
+%0A  /**%0A   * Tests the RECOVER recovery strategy.%0A   */%0A  public void testRecoverStrategy() throws Throwable %7B%0A    RecoveryStrategy strategy = RecoveryStrategies.RECOVER;%0A    CopycatClient client = mock(CopycatClient.class);%0A    strategy.recover(client);%0A    verify(client).recover();%0A  %7D%0A%0A  /**%0A   * Tests the CLOSE recovery strategy.%0A   */%0A  public void testCloseStrategy() throws Throwable %7B%0A    RecoveryStrategy strategy = RecoveryStrategies.CLOSE;%0A    CopycatClient client = mock(CopycatClient.class);%0A    strategy.recover(client);%0A    verify(client).close();%0A  %7D%0A%0A
 %7D%0A

Add recovery strategy tests.