@Test(expected = IOException.class)
public void testGetBase64KeystoreTooBigFile() throws IOException {

    File temp = File.createTempFile("keystore", "");
    StringBuilder builder = new StringBuilder();
    for (int i = 0; i < 1000; i++) {
        builder.append("way too long...\n");
    }
    FileUtils.writeStringToFile(temp, builder.toString());
    try {
        ConfigurationServerImpl.getBase64Keystore(temp.getPath());
    } finally {
        temp.delete();
    }
}