@Test
public void testGetIdAttributeForAlternateFieldName() throws NoSuchFieldException, SecurityException {
Mockito.when(persistentEntityWithAlternateFieldNameForId.getTypeInformation()).thenReturn(
ClassTypeInformation.from(ProductBeanWithAlternateFieldNameForId.class));
SimpleSolrPersistentProperty property = new SimpleSolrPersistentProperty(
ProductBeanWithAlternateFieldNameForId.class.getDeclaredField("productId"), null,
persistentEntityWithAlternateFieldNameForId, new SimpleTypeHolder());
Mockito.when(persistentEntityWithAlternateFieldNameForId.getIdProperty()).thenReturn(property);
SolrEntityInformation<ProductBeanWithAlternateFieldNameForId, String> entityInformation = new MappingSolrEntityInformation<ProductBeanWithAlternateFieldNameForId, String>(