@Test
    public void testCreationCases() {
        System.out.println("Executing testCreationCases");

        // Invalid param - less than lower bound
        LoanDuration duration = null;
        try {
            duration = new LoanDuration(0);
            fail("Min bound check failed");
        } catch (Exception e) {}
        assertEquals(duration, null);


        // Invalid param - exceeds upper bound
        try {
            duration = new LoanDuration(100);
            fail("Max bound check failed");
        } catch (Exception e) {}
        assertEquals(duration, null);

        // Valid param
        try {
            duration = new LoanDuration(50);
        } catch (Exception e) {}
        assertNotNull("Failed creating for a valid case.",duration);
    }