PosCap implements Comparable<PosCap>, Serializable { public static PosCap create(PartOfSpeech partOfSpeech, boolean capitalized) { return new PosCap(partOfSpeech, capitalized); } private  PosCap(PartOfSpeech partOfSpeech, boolean capitalized); static PosCap getCapitalized(PartOfSpeech partOfSpeech); static PosCap getNotCapitalized(PartOfSpeech partOfSpeech); static PosCap create(PartOfSpeech partOfSpeech, boolean capitalized); static int cardinality(); static PosCap createFromOrdinal(int ordinal); PartOfSpeech getPartOfSpeech(); boolean isCapitalized(); int ordinal(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(PosCap o); @Override String toString();  }
@Test public void testCreate() { PosCap posCap = PosCap.create(PartOfSpeech.BOS, true); assertEquals(posCap.getPartOfSpeech(), PartOfSpeech.BOS); assertEquals(posCap.isCapitalized(), true); }