### Question:
Drug extends AbstractNamedEntity<Drug> implements Comparable<Drug> { public String getAtcCode() { return d_atcCode; } Drug(String name, String atcCode); String getAtcCode(); void setAtcCode(String atcCode); @Override String toString(); @Override boolean equals(Object o); @Override boolean deepEquals(Entity other); @Override Set<Entity> getDependencies(); void setName(String name); static final String PROPERTY_ATCCODE; }### Answer:
@Test public void test2ArgConstructor() { Drug d = new Drug("name", "atc"); assertEquals("name", d.getName()); assertEquals("atc", d.getAtcCode()); }