*/
@Test
public void testSimpleQuestions2() {
setUp();
this.realiser.setLexicon(this.lexicon);
PhraseElement s = this.phraseFactory.createClause("the woman", "kiss", //$NON-NLS-1$ //$NON-NLS-2$
"the man"); //$NON-NLS-1$
// try with the simple yes/no type first
s.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.YES_NO);
Assert.assertEquals("does the woman kiss the man", this.realiser //$NON-NLS-1$
.realise(s).getRealisation());
// now in the passive
s = this.phraseFactory.createClause("the woman", "kiss", //$NON-NLS-1$ //$NON-NLS-2$
"the man"); //$NON-NLS-1$
s.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.YES_NO);
s.setFeature(Feature.PASSIVE, true);
Assert.assertEquals("is the man kissed by the woman", this.realiser //$NON-NLS-1$
.realise(s).getRealisation());
// // subject interrogative with simple present
// // sentence: "the woman kisses the man"
s = this.phraseFactory.createClause("the woman", "kiss", //$NON-NLS-1$ //$NON-NLS-2$
"the man"); //$NON-NLS-1$
s.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_SUBJECT);
Assert.assertEquals("who kisses the man", this.realiser.realise(s) //$NON-NLS-1$
.getRealisation());
// object interrogative with simple present
s = this.phraseFactory.createClause("the woman", "kiss", //$NON-NLS-1$ //$NON-NLS-2$
"the man"); //$NON-NLS-1$
s.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_OBJECT);
Assert.assertEquals("who does the woman kiss", this.realiser //$NON-NLS-1$
.realise(s).getRealisation());
// subject interrogative with passive
s = this.phraseFactory.createClause("the woman", "kiss", //$NON-NLS-1$ //$NON-NLS-2$
"the man"); //$NON-NLS-1$
s.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_SUBJECT);
s.setFeature(Feature.PASSIVE, true);
Assert.assertEquals("who is the man kissed by", this.realiser //$NON-NLS-1$
.realise(s).getRealisation());
}