### Question:
ISOAmount extends ISOComponent implements Cloneable, Externalizable { public int unpack(byte[] b) throws ISOException { throw new ISOException ("Not available"); } ISOAmount();  ISOAmount(int fieldNumber);  ISOAmount(int fieldNumber, int currencyCode, BigDecimal amount); Object getKey(); Object getValue(); void setValue(Object obj); void setFieldNumber(int fieldNumber); @Override int getFieldNumber(); BigDecimal getAmount(); int getScale(); String getScaleAsString(); int getCurrencyCode(); String getCurrencyCodeAsString(); String getAmountAsLegacyString(); String getAmountAsString(); byte[] pack(); int unpack(byte[] b); void unpack(InputStream in); void dump(PrintStream p, String indent); void writeExternal(ObjectOutput out); void readExternal(ObjectInput in); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testUnPack2() throws IOException { try { iSOAmount.unpack((InputStream) null); fail("ISOException Expected"); } catch (ISOException isoe) { assertThat(isoe.getMessage(), is("Not available")); } }
@Test public void testUnpack() { try { iSOAmount.unpack(new byte[1]); fail("ISOException Expected"); } catch (ISOException isoe) { assertThat(isoe.getMessage(), is("Not available")); } }