@Test
public void testMatches() {

	Assert.assertTrue(
		_sapAccessControlPolicy.matches(
			"com.liferay.portal.kernel.service.UserService", "getUserById",
			"*"));
	Assert.assertTrue(
		_sapAccessControlPolicy.matches(
			"com.liferay.portal.kernel.service.UserService", "getUserById",
			"com.liferay.portal.kernel.service.*"));
	Assert.assertTrue(
		_sapAccessControlPolicy.matches(
			"com.liferay.portal.kernel.service.UserService", "getUserById",
			"com.liferay.portal.kernel.service.UserService"));
	Assert.assertTrue(
		_sapAccessControlPolicy.matches(
			"com.liferay.portal.kernel.service.UserService", "getUserById",
			"com.liferay.portal.kernel.service.UserService#getUserById"));
	Assert.assertTrue(
		_sapAccessControlPolicy.matches(
			"com.liferay.portal.kernel.service.UserService", "getUserById",
			"com.liferay.portal.kernel.service.UserService#get*"));
	Assert.assertTrue(
		_sapAccessControlPolicy.matches(
			"com.liferay.portal.kernel.service.UserService", "getUserById",
			"com.liferay.portal.kernel.service.*#get*"));
	Assert.assertTrue(
		_sapAccessControlPolicy.matches(
			"com.liferay.portal.kernel.service.UserService", "getUserById",
			"#get*"));
	Assert.assertFalse(
		_sapAccessControlPolicy.matches(
			"com.liferay.portal.kernel.service.UserService", "getUserById",
			"com.liferay.portlet.*#get*"));
	Assert.assertFalse(
		_sapAccessControlPolicy.matches(
			"com.liferay.portal.kernel.service.UserService", "getUserById",
			"com.liferay.portal.service.*#update*"));
}