@Test
public void testBuildServiceContext() throws Exception {

	PingbackMethodImpl pingbackMethodImpl = getPingbackMethodImpl();
	ServiceContext serviceContext = pingbackMethodImpl.buildServiceContext(
		_COMPANY_ID, _GROUP_ID, _URL_TITLE);
	Assert.assertEquals(
		_PINGBACK_USER_NAME,
		serviceContext.getAttribute("pingbackUserName"));
	Assert.assertEquals(
		StringBundler.concat(
			_LAYOUT_FULL_URL, "/-/", _FRIENDLY_URL_MAPPING, "/",
			_URL_TITLE),
		serviceContext.getAttribute("redirect"));
	Assert.assertEquals(
		_LAYOUT_FULL_URL, serviceContext.getLayoutFullURL());
}