@Test
public void shouldFailSilentlyOnInvalidFileContents() throws IOException {

    String sid = "asdfghjklzxasdfghjklzxasdfghjklz";
    File sessionFile = new File(workingDirectory + sid + "_session");
    if (sessionFile.exists() && !sessionFile.delete()) {
        throw new IOException("Unable to delete file " + sessionFile.getAbsolutePath());
    }
    if (!sessionFile.createNewFile()) {
        throw new IOException("Unable to create new file " + sessionFile.getAbsolutePath());
    }
    assertThat(fileSessionStorage.getSession(sid), is(nullValue()));
}