public List<Pair<byte[], byte[]>> readRecords() throws IOException {
    final List<Pair<byte[], byte[]>> commands = new ArrayList<>();
    for (final String line : Files.readAllLines(getFile().toPath(), StandardCharsets.UTF_8)) {
      final String commandId = line.substring(0, line.indexOf(KEY_VALUE_SEPARATOR_STR));
      final String command = line.substring(line.indexOf(KEY_VALUE_SEPARATOR_STR) + 1);

      commands.add(new Pair<>(
          commandId.getBytes(StandardCharsets.UTF_8),
          command.getBytes(StandardCharsets.UTF_8)
      ));
    }

    return commands;
  }
@Test
  public void shouldBeEmptyWhenReadAllCommandsFromEmptyFile() throws IOException {
    // When
    final List<?> commands = replayFile.readRecords();

    // Then
    assertThat(commands.size(), is(0));
  }