    @Test
    public void shouldAllocateObject() {

        DomainObjectAllocator allocator = new DomainObjectAllocator(MyADO.class);
        AbstractDomainObject object = allocator.allocateObject(MyDO.class, "xpto");
        assertEquals(object.getClass(), MyDO.class);
        assertEquals(object.getExternalId(), "xpto");
    }