@Test
	public void testDecode() {
		final byte[] testbytes = "Hello World".getBytes();
		byte[] actualbytes;
		try {
			actualbytes = Base58.decode("JxF12TrwUP45BMd");
			assertTrue(new String(actualbytes),
					Arrays.equals(testbytes, actualbytes));
		} catch (final AddressFormatException e1) {
			Assert.fail();
		}

		try {
			assertTrue("1", Arrays.equals(Base58.decode("1"), new byte[1]));
		} catch (final AddressFormatException e1) {
			Assert.fail();
		}

		try {
			assertTrue("1111",
					Arrays.equals(Base58.decode("1111"), new byte[4]));
		} catch (final AddressFormatException e1) {
			Assert.fail();
		}

		try {
			Base58.decode("This isn't valid base58");
			fail();
		} catch (final AddressFormatException e) {
			// OK
		}
	}