Not quite sure what the previous code is doing, change to assertNotNull.