### Question:
InfinityUtilities { public static String getTagValue(String tagKey, DataTypeInfo dataType) { String completeKey = tagKey + "="; return dataType.getTags().stream().filter(t -> t.startsWith(completeKey)).map(t -> t.replace(completeKey, "")).findAny() .orElse(null); } private  InfinityUtilities(); static boolean isInfinityEnabled(DataTypeInfo dataType); static String getUrl(DataTypeInfo dataType); static String getTagValue(String tagKey, DataTypeInfo dataType); static String getDateFormat(String interval); static String infinify(String text, boolean isInfinity); static final String INFINITY; static final String URL; static final String INDEX; static final String POINT; static final String SHAPE; static final String START; static final String END; static final String TIME; static final long MISSING_VALUE; static final String MISSING_VALUE_SCI_NOTATION; static final double DEFAULT_BIN_WIDTH; static final int DEFAULT_BIN_WIDTH_FRAC_DIGITS; static final double DEFAULT_BIN_OFFSET; static final int DEFAULT_MIN_DOC_COUNT; static final int DEFAULT_SIZE; static final String DEFAULT_USER_NUM_FORMAT; static final int DEFAULT_INITIAL_BYTE_STREAM_SIZE; static final String BIN_MINUTE_INTERVAL; static final String BIN_HOUR_INTERVAL; static final String BIN_DAY_INTERVAL; static final String BIN_WEEK_INTERVAL; static final String BIN_MONTH_INTERVAL; static final String BIN_YEAR_INTERVAL; static final String BIN_UNIQUE_INTERVAL; static final String DEFAULT_DATE_BIN_INTERVAL; static final String DEFAULT_DATE_BIN_FORMAT; static final String DEFAULT_SCRIPT_LANGUAGE; }### Answer:
@Test public void testGetTagValue() { DataTypeInfo dataType = new DefaultDataTypeInfo(null, null, "typeKey", null, null, true); dataType.addTag("bubba=gump", null); dataType.addTag(".ben=jerrys", null); Assert.assertEquals("gump", InfinityUtilities.getTagValue("bubba", dataType)); Assert.assertEquals("jerrys", InfinityUtilities.getTagValue(".ben", dataType)); Assert.assertNull(InfinityUtilities.getTagValue("something", dataType)); }