SampleIdentifier { @Override public String toString() { return "SampleIdentifier{" + "id='" + id + '\'' + ", position=" + position + '}'; } private  SampleIdentifier(String id, int position); static SampleIdentifier of(String id, int position); static SampleIdentifier defaultSample(); String getId(); int getGenotypePosition(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testToString() { System.out.println(SampleIdentifier.of("SMPL12345", 3)); }