RED-7049-bp
release/2.349.x
- correct the query to get the type with same rank. - changed to get the list of types instead of a one result for the case with several types with the same rank - added junit tests Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>