@SuppressWarnings("serial")
@Test
public void testOnVehicleExit() {
VehicleExitEvent event = mock(VehicleExitEvent.class);
Boat boat = mock(Boat.class);
Server server = mock(Server.class);
when(server.getName()).thenReturn("Mock");
when(server.getVersion()).thenReturn("MockVer");
when(server.getBukkitVersion()).thenReturn("MockVer");
when(server.getLogger()).thenReturn(Logger.getLogger(Logger.GLOBAL_LOGGER_NAME));
when(server.getScheduler()).thenReturn(mock(BukkitScheduler.class));
Bukkit.setServer(server);
Location location = mock(Location.class);
World world = mock(World.class);
when(location.getWorld()).thenReturn(world);
when(boat.getLocation()).thenReturn(location);
when(boat.isValid()).thenReturn(true);
when(event.getVehicle()).thenReturn(boat);
ExitRemover rem = new ExitRemover();
rem.onVehicleExit(event);