@Test
public void testResolveExpandoNameId() throws Exception {

	when(
		_expandoBridge.getAttribute(Mockito.eq("customerId"))
	).thenReturn(
		"12345"
	);
	when(
		_metadataManager.getNameIdAttribute(Mockito.eq(SP_ENTITY_ID))
	).thenReturn(
		"expando:customerId"
	);
	String nameId = _defaultNameIdResolver.resolve(
		_user, SP_ENTITY_ID, null, null, false, null);
	Assert.assertNotNull(nameId);
	Assert.assertEquals("12345", nameId);
}