public List<LocalCommand> readRecords() throws IOException {
    final List<LocalCommand> localCommands = new ArrayList<>();
    for (final String line : Files.readAllLines(file.toPath(), StandardCharsets.UTF_8)) {
      final LocalCommand localCommand = MAPPER.readValue(line, LocalCommand.class);
      localCommands.add(localCommand);
    }
    return localCommands;
  }
@Test
  public void shouldBeEmptyWhenReadAllCommandsFromEmptyFile() throws IOException {
    // When
    final List<LocalCommand> commands = localCommandsFile.readRecords();

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