@Test
public void testGetBase64Keystore() throws IOException {

    File temp = File.createTempFile("keystore", "");
    try {
        FileUtils.writeStringToFile(temp, Base64.encodeBase64String(TEST.getBytes()));
        final String keystore = ConfigurationServerImpl.getBase64Keystore(temp.getPath());
        // let's decode it to make sure it makes sense
        Base64.decodeBase64(keystore);
    } finally {
        temp.delete();
    }
}