### Question:
LEFormat extends Format { static public LEFormat fromValue(Object o) { if (o instanceof Number) { return fromNumber(((Number) o).intValue()); } else if (o instanceof String){ return fromString((String) o); } else { return null; } } LEFormat(LedgerEntryType type, Object... args); static LEFormat fromString(String name); static LEFormat fromNumber(Number ord); static LEFormat fromValue(Object o); static LEFormat getLedgerFormat(LedgerEntryType key); @Override void addCommonFields(); @Override String name(); static public EnumMap<LedgerEntryType, LEFormat> formats; final LedgerEntryType ledgerEntryType; static LEFormat AccountRoot; static LEFormat DirectoryNode; static LEFormat Offer; static LEFormat Ticket; static LEFormat RippleState; static LEFormat SuspendedPayment; static LEFormat LedgerHashes; static LEFormat Amendments; static LEFormat SignerList; static LEFormat FeeSettings; }### Answer:
@Test public void testFromValue() throws Exception { LEFormat accountRoot = LEFormat.fromValue("AccountRoot"); assertNotNull(accountRoot); }