class EtiqetHandlers {

    public void checkPrecision(int precision, String timestamp) {
        if (precision == 0 && timestamp.contains(".")) {
            assertFalse("Precision doesn't match, expected 0 precision after seconds",
                timestamp.length() - 1 > timestamp.indexOf('.'));
        } else if (precision != 0) {
            int calcPrecision = (timestamp.length() - 1) - timestamp.lastIndexOf('.');
            assertEquals("Precision doesn't match -", precision, calcPrecision);
        }
    }

    public  EtiqetHandlers();

}