public class PostSearchITCase extends RestFbIntegrationTestBase {
@Test
public void tesPostSearchV1_0() {
DefaultFacebookClient facebookClient = new DefaultFacebookClient(getAccessToken(), Version.VERSION_1_0);
Connection publicSearch =
facebookClient.fetchConnection("search", Post.class, Parameter.with("q", "watermelon"),
Parameter.with("type", "post"));
assertNotNull(((Post) publicSearch.getData().get(0)).getMessage());
}