(PE-3238) Extract predicate functions from tests

This commit is a step towards more extensive SSL testing in jvm-puppet.
These functions will make it easier to test the SSL files laid down during startup.