@Test public void canCheckIfOrderWithIdIsKnown() { assertThat(cut.has(INITIAL_PENDING_ORDER_ID)).isTrue(); assertThat(cut.has(OTHER_PENDING_ORDER_ID)).isFalse(); }
public boolean has(final int id) { return idToOrder.containsKey(id); }
PendingOrderMapper { public boolean has(final int id) { return idToOrder.containsKey(id); } }
PendingOrderMapper { public boolean has(final int id) { return idToOrder.containsKey(id); }  }
PendingOrderMapper { public boolean has(final int id) { return idToOrder.containsKey(id); }  void put(final int id, final OrderEventListener listener); void remove(final int id); boolean has(final int id); OrderEventListener get(final int orderId); }
PendingOrderMapper { public boolean has(final int id) { return idToOrder.containsKey(id); }  void put(final int id, final OrderEventListener listener); void remove(final int id); boolean has(final int id); OrderEventListener get(final int orderId);  }