The basis of Agrobacterium-mediated genetic engineering is that the T-DNA of A. tumefaciens is excised and integrates into the plant genome as part of the natural infection process by this bacterium. So, any foreign DNA inserted into the T-DNA will also be integrated.