@Test
public void putValue() {

    rxPreferences.putBoolean("key1", true);
    assertThat(rxPreferences.getBoolean("key1", false).asValue()).isEqualTo(true);
    rxPreferences.putFloat("key2", 1);
    assertThat(rxPreferences.getFloat("key2", 0).asValue()).isEqualTo(1);
    rxPreferences.putInt("key3", 1);
    assertThat(rxPreferences.getInt("key3", 0).asValue()).isEqualTo(1);
    rxPreferences.putLong("key4", 1);
    assertThat(rxPreferences.getLong("key4", 0).asValue()).isEqualTo(1);
    rxPreferences.putString("key5", "value");
    assertThat(rxPreferences.getString("key5", null).asValue()).isEqualTo("value");
    rxPreferences.putStringSet("key6", singleton("value"));
    assertThat(rxPreferences.getStringSet("key6", null).asValue()).isEqualTo(singleton("value"));
}