public void testGetRandomNonAccentColor(){
  List<Integer> nonAccentColorList=new ArrayList<>();
  try {
    for (    String name : MaterialPalettes.ALL_COLOR_NAMES) {
      nonAccentColorList.addAll(MaterialPalettes.getColorsByName(name,false));
    }
    int randomColor=MaterialPalettes.getRandomNonAccentColor();
    assertTrue(nonAccentColorList.contains(randomColor));
  }
 catch (  IllegalAccessException iae) {
    fail();
  }
}

public void testGetRandomNonAccentColor ( ) { List < Integer > nonAccentColorList = new ArrayList < > ( ) ; try { for ( String name : MaterialPalettes . ALL_COLOR_NAMES ) { nonAccentColorList . addAll ( MaterialPalettes . getColorsByName ( name , false ) ) ; } int randomColor = MaterialPalettes . getRandomNonAccentColor ( ) ; assertTrue ( nonAccentColorList . contains ( randomColor ) ) ; } catch ( IllegalAccessException iae ) { fail ( ) ; } }
tests that the color returned by getrandomnonaccent color exists in the non accent colors .
