### Question:
MessageBundle { public String getLanguageDirection() { return languageDirection; } MessageBundle(LocaleSpec locale, String xml);  MessageBundle(LocaleSpec locale, Map<String, String> map);  MessageBundle(Element element);  MessageBundle(MessageBundle... bundles); private  MessageBundle(); String getLanguageDirection(); Map<String, String> getMessages(); String toJSONString(); @Override String toString(); static final MessageBundle EMPTY; }### Answer:
@Test public void extractFromElementWithLanguageDir() throws Exception { Element element = XmlUtil.parse(PARENT_LOCALE); MessageBundle bundle = new MessageBundle(element); assertEquals("rtl", bundle.getLanguageDirection()); }