@Test
public void givenAnObjectThenFileAccessorReturnsCorrectValue() {

    FieldAccessor<Integer> fieldAccessor = new FieldAccessor<>(floatingActionButton, "privateField", Integer.class);
    int value = fieldAccessor.get();
    assertThat(value).isEqualTo(FloatingActionButton.DEFAULT);
}