when(idMeta.forRowExtraction().extractCompoundPrimaryKeyFromRow(row, entityMeta, MANAGED)).thenReturn(embeddedKey);
ClusteredEntity actual = entityMapper.mapRowToEntityWithPrimaryKey(entityMeta, row, propertiesMap, MANAGED);
assertThat(actual).isSameAs(entity);
verify(idMeta.forValues()).setValueToField(entity, embeddedKey);
}
@Test
public void should_not_map_row_to_entity_with_primary_key_when_entity_null() {
ClusteredEntity actual = entityMapper.mapRowToEntityWithPrimaryKey(entityMeta, row, null, MANAGED);