CoreMessages implements Messages { @Override public boolean hasMessage(final String key) { return messages.hasMessage(key); } CoreMessages(); @Override String getMessage(@PropertyKey(resourceBundle = CORE) final String key, final Object... arguments); @Override boolean hasMessage(final String key);  }
@Test public void hasMessageShouldOnlyReturnTrueForMessagesInCoreProperties() { assertTrue(coreMessages.hasMessage("core.settings.errorPopup.saveFailed")); assertFalse(coreMessages.hasMessage("console.quit.message")); assertFalse(coreMessages.hasMessage("swing.button.ok")); }