### Question:
EntityResourceAction { public static EntityResourceAction fromString(String actionName) { return new EntityResourceAction(actionName); } EntityResourceAction(String actionName); static EntityResourceAction fromString(String actionName); String getActionName(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object object); static final EntityResourceAction VIEW; }### Answer:
@Test public void fromString() { EntityResourceAction id = EntityResourceAction.fromString("view"); assertEquals(EntityResourceAction.VIEW, id); }