```
public class DatatypeTest {

    private static final Log logger = LogFactory
            .getLog(TreeConstantTest.class);

    @Test
    public void testDatatypeFromName()
    {
        Datatype d= Datatype.fromString("Profile");

        assertTrue((d.toString().compareToIgnoreCase("PROFILE") == 0));

    }
     @Test
     public void testDatatypeFromName1()
     {
         Datatype d = Datatype.fromString("SupportDetail");
         assertTrue((d.toString().compareToIgnoreCase("SUPPORT_DETAIL") == 0 ));
     }
}

```

When i execute the first test case it is showing failure case in green.

But when i execute the second test case it is showing me the error as `java.lang.AssertionError`.

I am writing the test cases for this class

public enum DocDatatype {

```
PROFILE("Profile"),

SUPPORT_DETAIL("SupportDetail"),

```