### Question:
ToeGame { public void setNumOfPlayers(int numOfPlayers){ preferenceHelper.putPreference(numOfPlayers, GamePreference.PREF_NUMBER_OF_PLAYERS.getKey(), Context.MODE_PRIVATE); } @Inject  ToeGame(PreferenceHelper preferenceHelper); String titleHack(String appName, String statusMessage); void setSkill(Skill skill); void setNumOfPlayers(int numOfPlayers); Skill getSkill(); int getNumOfPlayers(); void setTurn(GameSymbol gameSymbol); GameSymbol getTurn(); boolean inProgress(); void setGameOver(); void setGameInProgess(); void advanceTurn(GameSymbol gameSymbol); void chooseBox(ContentResolver contentResolver, ToeStrategy strategy); void reset(ContentResolver contentResolver); boolean isOnePlayerGame(); boolean symbolIsAndroid(GameSymbol symbol); boolean isAndroidTurn(); void generateAndroidTurn(ContentResolver contentResolver, int[] selectedXBoxIds, int[] selectedOBoxIds);  }### Answer:
@Test public void shouldSetNumberOfPlayers(){ toeGame.setNumOfPlayers(2); verify(preferenceHelper).putPreference(eq(2), eq(GamePreference.PREF_NUMBER_OF_PLAYERS.getKey()), eq(Context.MODE_PRIVATE)); }