BinTargetImpl extends XliffElementImpl implements BinTarget { public Child getChild() { return child; } BinTargetImpl(Child child);  BinTargetImpl(Element element); @Override List<? extends Node> getChildren(); Child getChild(); MimeType getMimeType(); Collection<NonXliffAttribute> getNonXliffAttributes(); PhaseName getPhaseName(); ResName getResName(); ResType getResType(); State getState(); StateQualifier getStateQualifier(); com.sap.mlt.xliff12.api.attribute.Ts getTs(); void setChild(Child child); void setMimeType(MimeType mimeType); void setNonXliffAttributes(
			Collection<NonXliffAttribute> nonXliffAttributes); void setPhaseName(PhaseName phaseName); void setResName(ResName resName); void setResType(ResType resType); void setState(State state); void setStateQualifier(StateQualifier stateQualifier); void setTs(com.sap.mlt.xliff12.api.attribute.Ts ts);  }
@Test public void testBinTargetImplChild() { BinTargetImpl bt = createDefaultBinTarget(); assertEquals(createDefaultInternalFile(), bt.getChild()); }
@Test public void testBinTargetImplElement() { Document doc = Utils.createDocument(); Element elem = doc.createElementNS(XLIFF_12_NAMESPACE, "bin-target"); try { new BinTargetImpl(elem); fail("Expected ConstraintViolationException"); } catch (ConstraintViolationException e) { } elem.appendChild(createDefaultExternalFile().asXmlNode(doc)); try { BinTargetImpl ref = new BinTargetImpl(elem); assertEquals(createDefaultExternalFile(), ref.getChild()); } catch (ConstraintViolationException e) { fail("Did not expect ConstraintViolationException"); } elem.removeChild(elem.getFirstChild()); elem.appendChild(createDefaultInternalFile().asXmlNode(doc)); try { BinTargetImpl ref = new BinTargetImpl(elem); assertEquals(createDefaultInternalFile(), ref.getChild()); } catch (ConstraintViolationException e) { fail("Did not expect ConstraintViolationException"); } elem.removeChild(elem.getFirstChild()); elem.appendChild(doc.createElementNS(XLIFF_12_NAMESPACE, "something")); try { new BinTargetImpl(elem); fail("Expected ConstraintViolationException"); } catch (ConstraintViolationException e) { } }