@Activate
  protected void activate() throws Exception {
    Class<?> clazz = getClass();

    String xml = new String(FileUtil.getBytes(getClass(), "/META-INF/social/liferay-social.xml"));

    SocialConfigurationUtil.read(clazz.getClassLoader(), new String[] {xml});
  }
  @BeforeClass
  public static void setUpClass() throws Exception {
    userClassNameId = PortalUtil.getClassNameId(User.class.getName());

    Class<?> clazz = SocialActivitySettingLocalServiceTest.class;

    String xml = new String(FileUtil.getBytes(clazz, "dependencies/liferay-social.xml"));

    SocialConfigurationUtil.read(clazz.getClassLoader(), new String[] {xml});
  }