generic map junit tests