FixMessage { public boolean hasValue(int tagId) { return !multimap.get(tagId).isEmpty(); } FixMessage(final Multimap<Integer, String> multimap); Collection<String> getValues(int tagId); String getFirstValue(int tagId); boolean hasValue(int tagId); void replace(int tagId, String value); String toFixString(); String toHumanString(); @Override String toString();  }
@Test public void shouldReturnFalseIfFixMessageDoesNotHaveTag() throws Exception { final Multimap<Integer, String> multimap = ArrayListMultimap.create(); final FixMessage fixMessage = new FixMessage(multimap); Assert.assertThat(fixMessage.hasValue(23), is(false)); }