### Question:
GenericAddressSpace extends AbstractAddressSpace { @Override public Address getAddress(long offset) throws AddressOutOfBoundsException { return new GenericAddress(this, offset); } GenericAddressSpace(String name, int size, int type, int unique);  GenericAddressSpace(String name, int size, int type, int unique, boolean showSpaceName);  GenericAddressSpace(String name, int size, int unitSize, int type, int unique); @Override Address getAddress(long offset); @Override Address getAddressInThisSpaceOnly(long offset);  }### Answer:
@Test public void testGetAddress() { try { Address addr = space.getAddress("10"); Assert.assertEquals(0x10, addr.getOffset()); addr = space.getAddress("Test:20"); Assert.assertEquals(0x20, addr.getOffset()); } catch (AddressFormatException e) { Assert.fail(e.getMessage()); } try { Address addr = space.getAddress(":10"); assertNull(addr); addr = space.getAddress("Foo:0"); assertNull(addr); } catch (AddressFormatException e) { Assert.fail(e.getMessage()); } try { space.getAddress("Test:256"); Assert.fail("Should not have given back an address!"); } catch (AddressFormatException e) { } try { space.getAddress("Testxyz"); Assert.fail("Should not have given back an address!"); } catch (AddressFormatException e) { } try { space.getAddress("256"); Assert.fail("Should not have given back an address!"); } catch (AddressFormatException e) { } }