### Question:
CommonService { public void send(CommandSender sender, MessageKey key) { messages.send(sender, key); } CommonService(); T getProperty(Property<T> property); void send(CommandSender sender, MessageKey key); void send(CommandSender sender, MessageKey key, String... replacements); String retrieveSingleMessage(CommandSender sender, MessageKey key); boolean hasPermission(Player player, PermissionNode node);  }### Answer:
@Test public void shouldSendMessageToPlayer() { CommandSender sender = mock(CommandSender.class); MessageKey key = MessageKey.ACCOUNT_NOT_ACTIVATED; commonService.send(sender, key); verify(messages).send(sender, key); }
@Test public void shouldSendMessageWithReplacements() { CommandSender sender = mock(CommandSender.class); MessageKey key = MessageKey.ACCOUNT_NOT_ACTIVATED; String[] replacements = new String[]{"test", "toast"}; commonService.send(sender, key, replacements); verify(messages).send(sender, key, replacements); }