// Path: src/main/java/org/ominidi/facebook/configuration/FacebookConfig.java
// @Getter
// @Setter
// @Configuration
// @ConfigurationProperties(prefix = "facebook")
// public class FacebookConfig {
//     private String graphAccessTokenUri;
//     private Map<String, String> page = new HashMap<>();
//     private Map<String, String> application = new HashMap<>();
// }
// 
// Path: src/main/java/org/ominidi/facebook/client/ClientFactory.java
// @Configuration
// @Import(FacebookConfig.class)
// public class ClientFactory {
// 
//     @Autowired
//     private FacebookConfig facebookConfig;
// 
//     public FacebookClient getClient() {
//         String appId = facebookConfig.getApplication().get("app_id");
//         String appSecret = facebookConfig.getApplication().get("app_secret");
// 
//         FacebookClient.AccessToken token = new DefaultFacebookClient(Version.VERSION_2_8).obtainAppAccessToken(appId, appSecret);
//         return new DefaultFacebookClient(token.getAccessToken(), appSecret, Version.VERSION_2_8);
//     }
// }
// 
// Path: src/main/java/org/ominidi/facebook/exception/ConnectionException.java
// public class ConnectionException extends Exception {
//     public ConnectionException(String message) {
//         super(message);
//     }
// 
//     public ConnectionException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public ConnectionException(Throwable cause) {
//         super(cause);
//     }
// }


import java.util.HashMap;
import java.util.Map;
import com.restfb.FacebookClient;
import com.restfb.Parameter;
import com.restfb.exception.FacebookException;
import com.restfb.json.JsonObject;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.ominidi.facebook.configuration.FacebookConfig;
import org.ominidi.facebook.client.ClientFactory;
import org.ominidi.facebook.exception.ConnectionException;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;

package org.ominidi.facebook.repository;



@RunWith(MockitoJUnitRunner.class)
public class PageFeedTest {

    @Mock
    private FacebookClient client;

    @Mock

// Path: src/main/java/org/ominidi/facebook/configuration/FacebookConfig.java
// @Getter
// @Setter
// @Configuration
// @ConfigurationProperties(prefix = "facebook")
// public class FacebookConfig {
//     private String graphAccessTokenUri;
//     private Map<String, String> page = new HashMap<>();
//     private Map<String, String> application = new HashMap<>();
// }
// 
// Path: src/main/java/org/ominidi/facebook/client/ClientFactory.java
// @Configuration
// @Import(FacebookConfig.class)
// public class ClientFactory {
// 
//     @Autowired
//     private FacebookConfig facebookConfig;
// 
//     public FacebookClient getClient() {
//         String appId = facebookConfig.getApplication().get("app_id");
//         String appSecret = facebookConfig.getApplication().get("app_secret");
// 
//         FacebookClient.AccessToken token = new DefaultFacebookClient(Version.VERSION_2_8).obtainAppAccessToken(appId, appSecret);
//         return new DefaultFacebookClient(token.getAccessToken(), appSecret, Version.VERSION_2_8);
//     }
// }
// 
// Path: src/main/java/org/ominidi/facebook/exception/ConnectionException.java
// public class ConnectionException extends Exception {
//     public ConnectionException(String message) {
//         super(message);
//     }
// 
//     public ConnectionException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public ConnectionException(Throwable cause) {
//         super(cause);
//     }
// }


// Path: src/test/java/org/ominidi/facebook/repository/PageFeedTest.java
import java.util.HashMap;
import java.util.Map;
import com.restfb.FacebookClient;
import com.restfb.Parameter;
import com.restfb.exception.FacebookException;
import com.restfb.json.JsonObject;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.ominidi.facebook.configuration.FacebookConfig;
import org.ominidi.facebook.client.ClientFactory;
import org.ominidi.facebook.exception.ConnectionException;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;

package org.ominidi.facebook.repository;



@RunWith(MockitoJUnitRunner.class)
public class PageFeedTest {

    @Mock
    private FacebookClient client;

    @Mock

    private FacebookConfig config;
