@Test
public void testParseConvertLib() throws Exception {
Contract mc = parseContractJson(contractBaseDir, "MetaCoin", "ConvertLib");
assertEquals("Unexpected contract name", "ConvertLib", mc.getContractName());
assertEquals("Unexpected number of functions", 1, mc.abi.size());
AbiDefinition abi = mc.abi.get(0);
assertEquals("Unexpected function name", "convert", abi.getName());
assertTrue("Expected function to be 'constant'", abi.isConstant());
assertFalse("Expected function to not be 'payable'", abi.isPayable());
assertEquals("Expected abi to represent a function", "function", abi.getType());
assertEquals("Expected the 'pure' for the state mutability setting", "pure",
abi.getStateMutability());
}
}