package org.robolectric.shadows;

import static com.google.common.truth.Truth.assertThat;

import android.os.Build;
import android.service.quicksettings.Tile;
import android.service.quicksettings.TileService;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import org.robolectric.shadow.api.Shadow;

/** test for {@link org.robolectric.shadows.ShadowTileService}. */
@RunWith(RobolectricTestRunner.class)
@Config(sdk = Build.VERSION_CODES.N)
public final class ShadowTileServiceTest {

  private MyTileService tileService;

  @Before
  public void setUp() {
    tileService = Shadow.newInstanceOf(MyTileService.class);
  }

  @Test
  public void getTile() {
    Tile tile = tileService.getQsTile();
    assertThat(tile).isNotNull();
  }

  /** A subclass of {@link TileService} for testing,
   *  to mimic the way {@link TileService} is used in production.*/
  static class MyTileService extends TileService {}
}

@@ -374,57 +374,15 @@
 fig;
-%0Aimport org.robolectric.shadow.api.Shadow;
 %0A%0A/** 
-t
+T
 est 
@@ -652,29 +652,12 @@
 e = 
-Shadow.newInstanceOf(
+new 
 MyTi
@@ -665,22 +665,17 @@
 eService
-.class
+(
 );%0A  %7D%0A%0A
@@ -793,16 +793,21 @@
 %7D%0A%0A  /**
+%0A   *
  A subcl
@@ -849,16 +849,10 @@
 ing,
-%0A   *  t
+ T
 o mi
@@ -893,16 +893,21 @@
  used in
+%0A   *
  product
@@ -910,16 +910,20 @@
 duction.
+%0A   
 */%0A  sta

Fix Java doc problem.