@Test public void setVolumeControlStream_setsTheSpecifiedStreamType() { TestActivity activity = new TestActivity(); activity.setVolumeControlStream(AudioManager.STREAM_ALARM); assertThat(activity.getVolumeControlStream()).isEqualTo(AudioManager.STREAM_ALARM); }