Add ViewControllerPrivate.h to expose properties and methods for use by unit tests. In StoryboardViewControllerTests implement testViewControllerTextField.