// Path: src/main/java/com/thoughtworks/go/strongauth/wire/PluginConfigurationDecoder.java
// public class PluginConfigurationDecoder {
//     public PluginConfiguration decode(GoApiResponse response) {
//         if (response.responseCode() == 200) {
//             return parseConfiguration(response.responseBody());
//         } else {
//             return defaultConfiguration();
//         }
//     }
// 
//     private PluginConfiguration parseConfiguration(String body) {
//         if (body == null) {
//             return defaultConfiguration();
//         } else {
//             return fromMap(Json.toMapOfStrings(body));
//         }
//     }
// 
//     private PluginConfiguration fromMap(Map<String, String> configMap) {
//         return new PluginConfiguration(configMap.get("PASSWORD_FILE_PATH"));
//     }
// 
//     public PluginConfiguration defaultConfiguration() {
//         return new PluginConfiguration();
//     }
// }


import com.thoughtworks.go.plugin.api.GoApplicationAccessor;
import com.thoughtworks.go.plugin.api.GoPluginIdentifier;
import com.thoughtworks.go.plugin.api.request.GoApiRequest;
import com.thoughtworks.go.plugin.api.response.DefaultGoApiResponse;
import com.thoughtworks.go.strongauth.wire.PluginConfigurationDecoder;
import org.hamcrest.CustomMatcher;
import org.json.JSONObject;
import org.junit.Test;
import org.skyscreamer.jsonassert.JSONCompareMode;
import java.io.File;
import static java.util.Collections.singletonList;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.argThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.skyscreamer.jsonassert.JSONCompare.compareJSON;
package com.thoughtworks.go.strongauth.config;




public class GoAPITest {
    final GoPluginIdentifier goPluginIdentifier = new GoPluginIdentifier("authentication", singletonList("1.0"));
    final GoApplicationAccessor goApplicationAccessor = mock(GoApplicationAccessor.class);
// Path: src/main/java/com/thoughtworks/go/strongauth/wire/PluginConfigurationDecoder.java
// public class PluginConfigurationDecoder {
//     public PluginConfiguration decode(GoApiResponse response) {
//         if (response.responseCode() == 200) {
//             return parseConfiguration(response.responseBody());
//         } else {
//             return defaultConfiguration();
//         }
//     }
// 
//     private PluginConfiguration parseConfiguration(String body) {
//         if (body == null) {
//             return defaultConfiguration();
//         } else {
//             return fromMap(Json.toMapOfStrings(body));
//         }
//     }
// 
//     private PluginConfiguration fromMap(Map<String, String> configMap) {
//         return new PluginConfiguration(configMap.get("PASSWORD_FILE_PATH"));
//     }
// 
//     public PluginConfiguration defaultConfiguration() {
//         return new PluginConfiguration();
//     }
// }


// Path: src/test/java/com/thoughtworks/go/strongauth/config/GoAPITest.java
import com.thoughtworks.go.plugin.api.GoApplicationAccessor;
import com.thoughtworks.go.plugin.api.GoPluginIdentifier;
import com.thoughtworks.go.plugin.api.request.GoApiRequest;
import com.thoughtworks.go.plugin.api.response.DefaultGoApiResponse;
import com.thoughtworks.go.strongauth.wire.PluginConfigurationDecoder;
import org.hamcrest.CustomMatcher;
import org.json.JSONObject;
import org.junit.Test;
import org.skyscreamer.jsonassert.JSONCompareMode;
import java.io.File;
import static java.util.Collections.singletonList;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.argThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.skyscreamer.jsonassert.JSONCompare.compareJSON;

package com.thoughtworks.go.strongauth.config;




public class GoAPITest {
    final GoPluginIdentifier goPluginIdentifier = new GoPluginIdentifier("authentication", singletonList("1.0"));
    final GoApplicationAccessor goApplicationAccessor = mock(GoApplicationAccessor.class);
    final PluginConfigurationDecoder pluginConfigurationDecoder = new PluginConfigurationDecoder();