  @Test
  public void getValue() {

    // Arrange
    long expected = 2;
    String key = "testKey2";
    preferences.edit().putLong(key, expected).commit();
    LongPreference preference = new LongPreference(preferences, key);

    // Act
    long result = preference.get();

    // Assert
    assertThat(result).isEqualTo(expected);
  }