StorageSupport implements Storage { @Override public String readVersion() throws ParseException { return HeaderStructure.readVersion(() -> this.read(Charset.defaultCharset())); }  @Override void writeHeader(String version); @Override String readVersion();  }
@Test @DisplayName("Reads the version of the data stream") public void testReadVersion() throws Exception { assertThat(storage.readVersion()).isEqualTo(VERSION); }