public MediaControllerCompatAssert hasBufferPosition(long position) { isNotNull(); long actualPosition = actual.getPlaybackState().getBufferedPosition(); assertThat(actualPosition) // .overridingErrorMessage("Expected buffer position <%s> but was <%s>.", position, actualPosition) // .isEqualTo(position); return this; }