private SceneSwitcher sceneSwitcher;
@Mock
private TwitchApi twitchApi;
@Before
public void initMocks() throws IOException {
<BUG>when(settings.getStreamDelay()).thenReturn(0L);
}</BUG>
QueuedPlayer getUser(PersistenceManager pm, String playerName) throws IOException {
OsuUser user = osuApi.getUser(playerName, pm, 0);
return new QueuedPlayer(user, null, clock.getTime());

private SceneSwitcher sceneSwitcher;
@Mock
private TwitchApi twitchApi;
@Before
public void initMocks() throws IOException {
when(settings.getStreamDelay()).thenReturn(0L);
when(osu.getClientStatus()).thenReturn(new OsuStatus(Type.CLOSED, null));
}
QueuedPlayer getUser(PersistenceManager pm, String playerName) throws IOException {
OsuUser user = osuApi.getUser(playerName, pm, 0);
return new QueuedPlayer(user, null, clock.getTime());
