### Question:
PaletteUtils { public static String getSwatchDescription(PaletteSwatch.SwatchType type) { switch (type) { case VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_vibrant); case LIGHT_VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_light_vibrant); case DARK_VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_dark_vibrant); case MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_muted); case LIGHT_MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_light_muted); case DARK_MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_dark_muted); default: return ""; } } private  PaletteUtils(); static String getSwatchDescription(PaletteSwatch.SwatchType type); static String getPaletteMessage(String filename, ArrayList<PaletteSwatch> swatches);  }### Answer:
@Test public void paletteUtils_getVibrantSwatchDescription() { String description = PaletteUtils.getSwatchDescription(PaletteSwatch.SwatchType.VIBRANT); assertEquals(description, mockContext.getString(R.string.swatch_vibrant)); }
@Test public void paletteUtils_getLightVibrantSwatchDescription() { String description = PaletteUtils.getSwatchDescription(PaletteSwatch.SwatchType.LIGHT_VIBRANT); assertEquals(description, mockContext.getString(R.string.swatch_light_vibrant)); }
@Test public void paletteUtils_getDarkVibrantSwatchDescription() { String description = PaletteUtils.getSwatchDescription(PaletteSwatch.SwatchType.DARK_VIBRANT); assertEquals(description, mockContext.getString(R.string.swatch_dark_vibrant)); }
@Test public void paletteUtils_getMutedSwatchDescription() { String description = PaletteUtils.getSwatchDescription(PaletteSwatch.SwatchType.MUTED); assertEquals(description, mockContext.getString(R.string.swatch_muted)); }
@Test public void paletteUtils_getLightMutedSwatchDescription() { String description = PaletteUtils.getSwatchDescription(PaletteSwatch.SwatchType.LIGHT_MUTED); assertEquals(description, mockContext.getString(R.string.swatch_light_muted)); }
@Test public void paletteUtils_getDarkMutedSwatchDescription() { String description = PaletteUtils.getSwatchDescription(PaletteSwatch.SwatchType.DARK_MUTED); assertEquals(description, mockContext.getString(R.string.swatch_dark_muted)); }