### Question:
MessageLoader { public String get(String key) { return prop.getProperty(key); } MessageLoader(InputStream inputStream); static MessageLoader getInstance(); String get(String key); String get(int key); InputStream getIS();  }### Answer:
@Test public void testGetMessageKeyString() throws FileNotFoundException, JumbuneException { InputStream inputStream = new ByteArrayInputStream(CommonConstantsTest.CONTACTYAMLFILE.getBytes()); mloader = new MessageLoader(inputStream); String value = mloader.get(CommonConstantsTest.MESSAGELOADER_KEYS_TRING); assertTrue("Nathan Sweet".equals(value)); }
@Test public void testGetMessageKeyInt() throws FileNotFoundException, JumbuneException { InputStream inputStream = new ByteArrayInputStream(CommonConstantsTest.CONTACTYAMLFILE.getBytes()); mloader = new MessageLoader(inputStream); String value = mloader.get(CommonConstantsTest.MESSAGELOADER_KEY_INT); assertTrue("3322".equals(value)); }