@Test
public void testResolveStaticNameId() throws Exception {

	when(
		_metadataManager.getNameIdAttribute(Mockito.eq(SP_ENTITY_ID))
	).thenReturn(
		"static:test@liferay.com"
	);
	String nameId = _defaultNameIdResolver.resolve(
		_user, SP_ENTITY_ID, null, null, false, null);
	Assert.assertNotNull(nameId);
	Assert.assertEquals("test@liferay.com", nameId);
}