// Path: test/com/google/enterprise/adaptor/sharepoint/FormsAuthenticationHandlerTest.java
// static class UnsupportedScheduledExecutor extends CallerRunsExecutor 
//     implements ScheduledExecutorService {
// 
//   public ScheduledFuture<?> schedule(Runnable command, long delay,
//       TimeUnit unit) {
//     throw new UnsupportedOperationException();
//   }
// 
//   public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay,
//       TimeUnit unit) {
//     throw new UnsupportedOperationException();
//   }
// 
//   public ScheduledFuture<?> scheduleAtFixedRate(Runnable command,
//       long initialDelay, long period, TimeUnit unit) {
//     throw new UnsupportedOperationException();
//   }
// 
//   public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command,
//       long initialDelay, long delay, TimeUnit unit) {
//     throw new UnsupportedOperationException(); 
//   }
//     
// }
// 
// Path: test/com/google/enterprise/adaptor/sharepoint/FormsAuthenticationHandlerTest.java
// static class MockScheduledExecutor 
//     extends UnsupportedScheduledExecutor {
//   long executionDelay;
//   TimeUnit executionTimeUnit;   
//     
//   @Override
//   public ScheduledFuture<?> schedule(Runnable command, long delay,
//       TimeUnit unit) {
//     executionDelay = delay;
//     executionTimeUnit = unit;
//     return null;
//   }
// }
// 
// Path: src/com/google/enterprise/adaptor/sharepoint/SamlAuthenticationHandler.java
// @VisibleForTesting
// public interface SamlHandshakeManager {
//   public String requestToken() throws IOException;
//   public String getAuthenticationCookie(String token) throws IOException;
// }


import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import com.google.enterprise.adaptor.sharepoint.FormsAuthenticationHandlerTest.UnsupportedScheduledExecutor;
import com.google.enterprise.adaptor.sharepoint.FormsAuthenticationHandlerTest.MockScheduledExecutor;
import com.google.enterprise.adaptor.sharepoint.SamlAuthenticationHandler.SamlHandshakeManager;
import java.io.IOException;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
// Copyright 2014 Google Inc. All Rights Reserved.
//
// 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 com.google.enterprise.adaptor.sharepoint;






public class SamlAuthenticationHandlerTest {
  @Rule
  public ExpectedException thrown = ExpectedException.none();
  
  @Test
  public void testBuilder() {
    new SamlAuthenticationHandler.Builder("username", "password",
// Path: test/com/google/enterprise/adaptor/sharepoint/FormsAuthenticationHandlerTest.java
// static class UnsupportedScheduledExecutor extends CallerRunsExecutor 
//     implements ScheduledExecutorService {
// 
//   public ScheduledFuture<?> schedule(Runnable command, long delay,
//       TimeUnit unit) {
//     throw new UnsupportedOperationException();
//   }
// 
//   public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay,
//       TimeUnit unit) {
//     throw new UnsupportedOperationException();
//   }
// 
//   public ScheduledFuture<?> scheduleAtFixedRate(Runnable command,
//       long initialDelay, long period, TimeUnit unit) {
//     throw new UnsupportedOperationException();
//   }
// 
//   public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command,
//       long initialDelay, long delay, TimeUnit unit) {
//     throw new UnsupportedOperationException(); 
//   }
//     
// }
// 
// Path: test/com/google/enterprise/adaptor/sharepoint/FormsAuthenticationHandlerTest.java
// static class MockScheduledExecutor 
//     extends UnsupportedScheduledExecutor {
//   long executionDelay;
//   TimeUnit executionTimeUnit;   
//     
//   @Override
//   public ScheduledFuture<?> schedule(Runnable command, long delay,
//       TimeUnit unit) {
//     executionDelay = delay;
//     executionTimeUnit = unit;
//     return null;
//   }
// }
// 
// Path: src/com/google/enterprise/adaptor/sharepoint/SamlAuthenticationHandler.java
// @VisibleForTesting
// public interface SamlHandshakeManager {
//   public String requestToken() throws IOException;
//   public String getAuthenticationCookie(String token) throws IOException;
// }


// Path: test/com/google/enterprise/adaptor/sharepoint/SamlAuthenticationHandlerTest.java
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import com.google.enterprise.adaptor.sharepoint.FormsAuthenticationHandlerTest.UnsupportedScheduledExecutor;
import com.google.enterprise.adaptor.sharepoint.FormsAuthenticationHandlerTest.MockScheduledExecutor;
import com.google.enterprise.adaptor.sharepoint.SamlAuthenticationHandler.SamlHandshakeManager;
import java.io.IOException;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

// Copyright 2014 Google Inc. All Rights Reserved.
//
// 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 com.google.enterprise.adaptor.sharepoint;






public class SamlAuthenticationHandlerTest {
  @Rule
  public ExpectedException thrown = ExpectedException.none();
  
  @Test
  public void testBuilder() {
    new SamlAuthenticationHandler.Builder("username", "password",
        new UnsupportedScheduledExecutor(),