Load separate ViewController for unit test

I want to perform a unit test that whether my AVPlayerLayer is successfully added as sublayer in my ViewController view . I want to make a separate ViewController for this.Is it possible to make a separate ViewController for Unit Test ?

Load separate ViewController for unit test
 
 
Q