@Test
public void doTestWithNullInput() {

    final SecretManager secretManager = new SecretManager("key");
    expectedException.expect(NullPointerException.class);
    final String encrypted = secretManager.encrypt(null);
}