LPS-48117

Hey Brian,

@danielkocsis created a test for this as well, but we have discovered that the mocking he was leveraging there, more specifically the powermockito has some compatibility issues with Java7, so I've decided not to commit that ntil that is resolved. The powermockito needs to be upgraded and we have had a conversation with Manuel regarding this.

Thanks,

Máté