  @Test public void floatNullDefaultValueThrows() {

    try {
      rxPreferences.getFloat("key", null);
      fail();
    } catch (NullPointerException e) {
      assertThat(e).hasMessage("defaultValue == null");
    }
  }