### Question:
GroundItemsPlugin extends Plugin { private void notifyHighlightedItem(final GroundItem item) { final boolean shouldNotifyHighlighted = config.notifyHighlightedDrops() && TRUE.equals(highlightedItems.getUnchecked(new NamedQuantity(item))); final boolean shouldNotifyTier = config.notifyTier() != HighlightTier.OFF && getValueByMode(item.getGePrice(), item.getHaPrice()) > config.notifyTier().getValueFromTier(config) && FALSE.equals(hiddenItems.getUnchecked(new NamedQuantity(item))); final String dropType; if (shouldNotifyHighlighted) { dropType = "highlighted"; } else if (shouldNotifyTier) { dropType = "valuable"; } else { return; } final Player local = client.getLocalPlayer(); if (local == null) { return; } final StringBuilder notificationStringBuilder = new StringBuilder() .append("[") .append(local.getName()) .append("] received a ") .append(dropType) .append(" drop: ") .append(item.getName()); if (item.getQuantity() > 1) { if (item.getQuantity() >= MAX_QUANTITY) { notificationStringBuilder.append(" (Lots!)"); } else { notificationStringBuilder.append(" (") .append(QuantityFormatter.quantityToStackSize(item.getQuantity())) .append(")"); } } notifier.notify(notificationStringBuilder.toString()); }   @Getter(AccessLevel.PUBLIC)
	static final Map<GroundItem.GroundItemKey, GroundItem> collectedGroundItems; }### Answer:
@Test public void testNotifyHighlightedItem() { when(config.getHighlightItems()).thenReturn("abyssal whip"); when(config.notifyTier()).thenReturn(HighlightTier.OFF); when(config.notifyHighlightedDrops()).thenReturn(true); when(itemManager.getItemDefinition(ItemID.ABYSSAL_WHIP)).thenAnswer(a -> { ItemDefinition itemComposition = mock(ItemDefinition.class); when(itemComposition.getName()).thenReturn("Abyssal whip"); return itemComposition; }); ConfigChanged configChanged = new ConfigChanged(); configChanged.setGroup("grounditems"); groundItemsPlugin.onConfigChanged(configChanged); Tile tile = mock(Tile.class); when(tile.getWorldLocation()).thenReturn(new WorldPoint(0, 0, 0)); TileItem tileItem = mock(TileItem.class); when(tileItem.getId()).thenReturn(ItemID.ABYSSAL_WHIP); when(tileItem.getQuantity()).thenReturn(1); groundItemsPlugin.onItemSpawned(new ItemSpawned(tile, tileItem)); verify(notifier).notify("[Adam] received a highlighted drop: Abyssal whip"); }