### Question:
ColorValueParser { public boolean isColor() { return isColor; } ColorValueParser(); boolean isColor(); int getNextIndex(); @Nullable Color getColor(); boolean isColor(@Nonnull final String text, final int startIdx);  }### Answer:
@Test public void testNoColor() { ColorValueParser parser = new ColorValueParser(); assertResult(parser, parser.isColor("hello world", 0), false, null, -1); }
@Test public void testContainsColor() { ColorValueParser parser = new ColorValueParser(); assertResult(parser, parser.isColor("\\#ffff#world", 0), true, "(1.0,1.0,1.0,1.0)", 7); }
@Test public void testContainsColorThatDoesNotEnd() { ColorValueParser parser = new ColorValueParser(); assertResult(parser, parser.isColor("\\#ffff", 0), false, null, -1); }