}
@Test
public void testParamGradmidpoint() throws ParseException {
IShape sh = parser.parsePSTCode("\\"+getCommandName()+"[fillstyle=gradient, gradmidpoint=0]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
if(sh.isInteriorStylable()) {
assertEquals(0., sh.getGradMidPt(), 0.00001);
assertTrue(PSTParser.errorLogs().isEmpty());
sh = parser.parsePSTCode("\\"+getCommandName()+"[fillstyle=gradient, gradmidpoint=1]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(1., sh.getGradMidPt(), 0.00001);
assertTrue(PSTParser.errorLogs().isEmpty());
sh = parser.parsePSTCode("\\"+getCommandName()+"[fillstyle=gradient, gradmidpoint=0.5]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(0.5, sh.getGradMidPt(), 0.00001);
assertTrue(PSTParser.errorLogs().isEmpty());
sh = parser.parsePSTCode("\\"+getCommandName()+"[fillstyle=gradient, gradmidpoint=0.22]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(0.22, sh.getGradMidPt(), 0.00001);
assertTrue(PSTParser.errorLogs().isEmpty());
sh = parser.parsePSTCode("\\"+getCommandName()+"[fillstyle=gradient, gradmidpoint=-1]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
assertFalse(PSTParser.errorLogs().isEmpty());
PSTParser.errorLogs().clear();
sh = parser.parsePSTCode("\\"+getCommandName()+"[fillstyle=gradient, gradmidpoint=2]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$