### Question:
BoardActivity extends Activity implements OnTouchListener, OnSizeChangeListener, Compass.Listener { static int playerRotation(int azimut, int compassCalibration) { int playerRotaionInDegrees = azimut - compassCalibration; if (playerRotaionInDegrees < -180) playerRotaionInDegrees = 360 + playerRotaionInDegrees; if (playerRotaionInDegrees > 180) playerRotaionInDegrees = 360 - playerRotaionInDegrees; return playerRotaionInDegrees; }  @Override void onSizeChange(int width, int height); boolean onTouch(View view, MotionEvent event); @Override void onAzimutChange(int azimut); @Override void onPitchChange(int pitch); @Override void onRollChange(int roll); void onCreate(Bundle savedInstanceState); static final int MAX_TOUCHES; }### Answer:
@Test public void playerRotation_returns_40() { assertEquals(40, BoardActivity.playerRotation(40, 0)); }
@Test public void playerRotation_returns_50() { assertEquals(50, BoardActivity.playerRotation(-178, 132)); }
@Test public void playerRotation_returns_FIXME() { assertEquals(167, BoardActivity.playerRotation(179, -14)); }