@Test
 public void testUpdate2() {
   Powerup p = new Powerup(100, 100, Powerup.PowerupType.SHIELD);
   GameState gs = mock(GameState.class);
   MyRectangle floor = new MyRectangle(1, 1, 1, 1);
   when(gs.isPaused()).thenReturn(false);
   when(gs.getFloor()).thenReturn(floor);
   p.update(gs, 1000, 100);
 }
 @Test
 public void testRemovePowerup() {
   Powerup p = new Powerup(100, 100, Powerup.PowerupType.SHIELD);
   assertFalse(p.removePowerup());
 }
 @Test
 public void getTypeTestSHIELD() {
   Powerup p = new Powerup(100, 100, Powerup.PowerupType.SHIELD);
   assertTrue(p.getType() == Powerup.PowerupType.SHIELD);
 }
 @Test
 public void getTypeTestINSTANT() {
   Powerup p = new Powerup(100, 100, Powerup.PowerupType.INSTANT);
   assertTrue(p.getType() == Powerup.PowerupType.INSTANT);
 }
 @Test
 public void getCenterYTest() {
   Powerup p = new Powerup(100, 100, Powerup.PowerupType.INSTANT);
   assertTrue(p.getCenterY() == 100 + POWERUP_HEIGHT / 2);
 }
 @Test
 public void getCenterXTest() {
   Powerup p = new Powerup(100, 100, Powerup.PowerupType.INSTANT);
   assertTrue(p.getCenterX() == 100 + POWERUP_WIDTH / 2);
 }
 @Test
 public void getYTest() {
   Powerup p = new Powerup(100, 100, Powerup.PowerupType.INSTANT);
   assertTrue(p.getY() == 100f);
 }
 @Test
 public void getRectangleTest() {
   Powerup p = new Powerup(100, 100, Powerup.PowerupType.INSTANT);
   MyRectangle rect = new MyRectangle(100, 100, POWERUP_WIDTH, POWERUP_HEIGHT);
   assertEquals(p.getRectangle(), rect);
 }