@Before
public void setUp() {
PowerMockito.mockStatic(Logger.class);
this.globe = new Globe(WorldWind.WGS84_ELLIPSOID, new ProjectionWgs84());
this.terrain = new BasicTerrain();
LevelSet levelSet = new LevelSet(new Sector().setFullSphere(), 1.0, 1, 5, 5);
TerrainTile tile = new TerrainTile(new Sector(0, 0, 1, 1), levelSet.firstLevel(), 90, 180);
((BasicTerrain) this.terrain).addTile(tile);
int tileWidth = tile.level.tileWidth;
int tileHeight = tile.level.tileHeight;
int rowStride = (tileWidth + 2) * 3;
float[] points = new float[(tileWidth + 2) * (tileHeight + 2) * 3];
Vec3 tileOrigin = this.globe.geographicToCartesian(0.5, 0.5, 0.0, new Vec3());
this.globe.geographicToCartesianGrid(tile.sector, tileWidth, tileHeight, null, 1.0f, tileOrigin, points, rowStride + 3, rowStride);
this.globe.geographicToCartesianBorder(tile.sector, tileWidth + 2, tileHeight + 2, 0.0f, tileOrigin, points);
tile.setOrigin(tileOrigin);
tile.setPoints(points);
}