// Path: src/main/java/org/lbogdanov/poker/core/Duration.java
// static final int MINUTES_PER_DAY = MINUTES_PER_HOUR * 8;
// 
// Path: src/main/java/org/lbogdanov/poker/core/Duration.java
// static final int MINUTES_PER_HOUR = 60;
// 
// Path: src/main/java/org/lbogdanov/poker/core/Duration.java
// static final int MINUTES_PER_WEEK = MINUTES_PER_DAY * 5;


import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.lbogdanov.poker.core.Duration.MINUTES_PER_DAY;
import static org.lbogdanov.poker.core.Duration.MINUTES_PER_HOUR;
import static org.lbogdanov.poker.core.Duration.MINUTES_PER_WEEK;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
        thrown.expect(IllegalArgumentException.class);
        thrown.expectMessage("12y");
        Duration.parse("12y 5w 3h");
    }

    /**
     * Test for {@link Duration#parse(String)} with invalid input.
     */
    @Test
    public void testParseWithInvalidInput3() {
        thrown.expect(IllegalArgumentException.class);
        thrown.expectMessage(".");
        Duration.parse("12d.5w.3h");
    }

    /**
     * Test for {@link Duration#parse(String)} with invalid input.
     */
    @Test
    public void testParseWithInvalidInput4() {
        thrown.expect(IllegalArgumentException.class);
        thrown.expectMessage("12");
        Duration.parse("2h 12");
    }

    /**
     * Test for {@link Duration#toString()}.
     */
    @Test
    public void testToString() {
// Path: src/main/java/org/lbogdanov/poker/core/Duration.java
// static final int MINUTES_PER_DAY = MINUTES_PER_HOUR * 8;
// 
// Path: src/main/java/org/lbogdanov/poker/core/Duration.java
// static final int MINUTES_PER_HOUR = 60;
// 
// Path: src/main/java/org/lbogdanov/poker/core/Duration.java
// static final int MINUTES_PER_WEEK = MINUTES_PER_DAY * 5;


// Path: src/test/java/org/lbogdanov/poker/core/DurationTest.java
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.lbogdanov.poker.core.Duration.MINUTES_PER_DAY;
import static org.lbogdanov.poker.core.Duration.MINUTES_PER_HOUR;
import static org.lbogdanov.poker.core.Duration.MINUTES_PER_WEEK;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

        thrown.expect(IllegalArgumentException.class);
        thrown.expectMessage("12y");
        Duration.parse("12y 5w 3h");
    }

    /**
     * Test for {@link Duration#parse(String)} with invalid input.
     */
    @Test
    public void testParseWithInvalidInput3() {
        thrown.expect(IllegalArgumentException.class);
        thrown.expectMessage(".");
        Duration.parse("12d.5w.3h");
    }

    /**
     * Test for {@link Duration#parse(String)} with invalid input.
     */
    @Test
    public void testParseWithInvalidInput4() {
        thrown.expect(IllegalArgumentException.class);
        thrown.expectMessage("12");
        Duration.parse("2h 12");
    }

    /**
     * Test for {@link Duration#toString()}.
     */
    @Test
    public void testToString() {
        assertEquals("1w 1d 1h 1m", new Duration(MINUTES_PER_WEEK + MINUTES_PER_DAY + MINUTES_PER_HOUR + 1).toString());